Hello, I'm having problems executing the php document root directly in crontab
current rule working correctly
23 23 * * * sleep 33 & wget -t 1 -T 1800 link
Explanations 23:23 // run every day at eleven twenty-three sleep 33 // wait 33 seconds from the 23 minutes to start wget // call the url -t 1 // run only once -T 1800 // run for 1800 seconds, otherwise kill the process
I would like to exchange the call execution directly from the ex:
23 23 * * * sleep 33 & php -f /document_root/script.php
// The example above works! // I would like to know what is -f? // I tried to add -t 1 in the following ways below, but none worked
23 23 * * * sleep 33 & php -f -t 1 /document_root/script.php // not it works 23 23 * * * sleep 33 & php -t 1 /document_root/script.php // does not work 23 23 * * * sleep 33 & php -t 1 -f /document_root/script.php // does not work 23 23 * * * sleep 33 & php -f /document_root/script.php -t 1 // does not work 23 23 * * * sleep 33 & -t 1 php -f /document_root/script.php // does not work
Has anyone ever been through this? Thank you Marco