Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!plains!cooper@plains.NoDak.edu From: cooper@plains.NoDak.edu (Jeff Cooper) Newsgroups: comp.sys.next Subject: shell scripts and cron Message-ID: <10539@plains.NoDak.edu> Date: 22 May 91 01:22:10 GMT Organization: North Dakota State University, Fargo Lines: 22 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