Does anyone know if there is a way to run a cron job without the users .profile being read? The users .profile has a an interactive menu and when a job is run through cron in never completes because it is waiting for user input.
I am curious to know which flavour of UNIX you are using because I have just checked the man pages (man crontab) on Tru64 UNIX and Solaris 8 and both say that the users .profile is not executed from cron. [Hence the number of recent posts from people wondering why PATH and other environmental variables are not set up as they want when running scripts from cron].
If this is the case you may want to re-investigate the reason(s) why your cron job never completes.
The OS is AIX 5.2. I took a users word he was unable to run a cron job because of his interactive .profile and was researching a way to prevent reading of the .profile. I will have to investigate more closely what he is doing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.