Mailinglist Archive: opensuse (2217 mails)
| < Previous | Next > |
Re: [opensuse] crontab problem? How to debug?
- From: Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx>
- Date: Fri, 14 Sep 2007 15:59:51 +0100
- Message-id: <46EAA1E7.2050805@xxxxxxxxxxxxxxxxx>
Peter Van Lone wrote:
> well since the exact same script works from shell (logged in as same
> user) but not from crontab ... then that would seem to suggest
> somthing about the crontab env specifically, correct?
Or it isn't the exact same script or exact same user :)
> Where would I look to find what env variables are being set in crontab
> -- or to compare those to what is set for this user in the shell?
Add the following commands to your crontab entry (or the script itself)
who am i
whoami
groups
ls -l
/home/httpd/htdocs/devestore.ourdomain.com/website/export/order_export.ph
Also see what happens when you run them in the shell. Make sure there
are no differences.
Cheers, Dave
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> well since the exact same script works from shell (logged in as same
> user) but not from crontab ... then that would seem to suggest
> somthing about the crontab env specifically, correct?
Or it isn't the exact same script or exact same user :)
> Where would I look to find what env variables are being set in crontab
> -- or to compare those to what is set for this user in the shell?
Add the following commands to your crontab entry (or the script itself)
who am i
whoami
groups
ls -l
/home/httpd/htdocs/devestore.ourdomain.com/website/export/order_export.ph
Also see what happens when you run them in the shell. Make sure there
are no differences.
Cheers, Dave
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |