Posts: 464
Thanks: 76
Thanked 35 Times in 29 Posts
cron job location
I'm trying to run a script once a night that calls on some php files to update a billing status.
I've been trying to run this from the debian crontab but as the php files are stored /var/www/mydomain.com/web/billing/thephp.php cron fails to execute them are they are not stored in the same place as the where the cron job is executed from.
So my question is... in debian lenny, where does cron execute it's files from please?
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
Another suggestion is to use full path names for all commands and files so it will run the same regardless of where it's called from. No need to change directories that way.
(Better for me as on a complicated script I can forget what directory I'm in and start messing things up.)
Recent comments
17 hours 26 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
2 days 14 min ago
2 days 5 hours ago
2 days 6 hours ago