cooper@plains.NoDak.edu (Jeff Cooper) (05/22/91)
I have a problem getting cron to run a shell script properly, my crontab
looks something like:
0 5 * * * reporter my_program
The program 'my_program' is a csh script. Now from my understanding of
cron, this should should run the program 'my_program' with the user
'reporter' permissions at five in the morning every day.
But my question is shouldn't the ~reporter/.cshrc and ~reporter/.login
be executed before the script 'my_program' is executed? They don't
seem to be (my script uses enviromental variables defined in those
fils, and so it fails). Is there anyway to make my script execute
in the correct enviroment (reporter's)? The script works if I log
in as 'reporter' and execute it, but not when run through cron. I'd
appreciate any help.
--
"Life is pain Highness, anyone who tells | Jeff Cooper
you different is selling something." | cooper@plains.nodak.edu
| plains!cooper%midkemia
- The Dread Pirate Roberts | (701) 235-6495