Cron
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
Cron
hi 2 all. I have one problem - I use laptop as web-server, for development (Mint 13 Maya). Here is some cron: "* * * * * php /home/user/webServer/test.php". And it doesnt work. But if I use "php /home/user/webServer/test.php" in the Terminal, it works perfect. I test it throught ssh. So, why cron dont work?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Cron
Moving it here, as I think the users knowledgeable about cron are here.
Does php produce some logfile? Else you may want to wrap this in a small shell script to ensure you output any stderr or stdout output. Partial example of that is here http://forums.linuxmint.com/viewtopic.p ... 16#p481766.
Does php produce some logfile? Else you may want to wrap this in a small shell script to ensure you output any stderr or stdout output. Partial example of that is here http://forums.linuxmint.com/viewtopic.p ... 16#p481766.
Re: Cron
No log files. Connect to database, insert into valusesxenopeek wrote:Moving it here, as I think the users knowledgeable about cron are here.
Does php produce some logfile? Else you may want to wrap this in a small shell script to ensure you output any stderr or stdout output. Partial example of that is here http://forums.linuxmint.com/viewtopic.p ... 16#p481766.
Re: Cron
By default it indeed may not save things in a log file, but Vincent posted an how-to to save all the output of the terminal command to a file. Then you can find the output - maybe including an error - in the file.
Registered Linux User #528502
Feel free to correct me if I'm trying to write in Spanish, French or German.
Feel free to correct me if I'm trying to write in Spanish, French or German.
Re: Cron
not errors - I run it manually, script works.AlbertP wrote:By default it indeed may not save things in a log file, but Vincent posted an how-to to save all the output of the terminal command to a file. Then you can find the output - maybe including an error - in the file.
Re: Cron
But maybe it does display an error when cron tries to run it. That's what the how-to of Vincent is for.
Registered Linux User #528502
Feel free to correct me if I'm trying to write in Spanish, French or German.
Feel free to correct me if I'm trying to write in Spanish, French or German.