Results 1 to 3 of 3
I am executing a php script from a cron job. The plain Jane scripts run just fine. Now I want to add a commena line argument to the script (argv[1]). ...
- 03-31-2011 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 10
argv in a Cron job
I am executing a php script from a cron job. The plain Jane scripts run just fine. Now I want to add a commena line argument to the script (argv[1]). The script runs perfectly from the command line with the following syntax
php myfile.php someargument
But when I try to put this command in a cron job it doesn't seem to be reading the argv or I get an ioctl error.
Any ideas on how to do this. I have been googling it for a day now and I haven't found anything useful.
Thanks.
- 04-03-2011 #2
I'm not sure that the shell inside cron would know where PHP lives. If you put in the full path to the PHP executable, instead of just 'php' does it make a difference?
- 04-03-2011 #3Just Joined!
- Join Date
- Nov 2008
- Posts
- 10


Reply With Quote
