How to run a script via cron?
If points like this in cron:
/var/www/script/test.php
the script is not run well, or not doing his job.
And if you do this:
wget http ........
It works!
The second way to run is not entirely correct as I understand it?
The question is simple: How can I run the script without wget?
3 answers
which php
will show where php is installed
this path is indicated in crontab
For example, if which gave /usr/bin/php, then write it in the crown
/usr/bin/php /var/www/script/test.php
Show fully how and what to specify. Should be something like this:
1 * * * * /bin/php /var/www/script/test.php
The decision to publish @Tevin_Jacobs57 in the comments to the question
Find more questions by tags The task schedulers