On Apr 24, 2008, at 1:26 PM, John Almberg wrote:
The trouble comes when I try to run this script with cron. I have
something like this in the gs user crontab:
0 15 * * * /home/gs/bin/script.php >>/home/gs/log/script.log
I can see from the cron log that cron runs script.php at the
Apr 24 15:00:03 on /usr/sbin/cron: (gs) CMD (/home/gs/bin/
I believe that you are going to be better off writing a trivial
# ...other env variables you need...
/home/gs/bin/script.php >> /home/gs/log/script.log
...and invoking this wrapper from cron instead of trying to reset the
shell and everything from within cron. You can test things by doing
an "su gs -c /bin/sh" from a root login and then trying to run your
wrapper, which will give you a minimum environment closer to what cron
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"