Hi,
I woild like to execute a php script using lynx in a crontab so I did:
The above is suppose to execute every 2 minutes but nothing is happening.
I also tried to create a shell script with
and added the following in the crontab
Still not working.
If I run the script manually then it all work. same for lynx, manually everything is fine
Any sugestion?
I woild like to execute a php script using lynx in a crontab so I did:
crontab -e
Code:
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#minute (0-59)
#| hour (0-23)
#| | day of the month (1-31)
#| | | month of the year (1-12 or Jan-Dec)
#| | | | day of the week (0-6 with 0=Sun or Sun-Sat)
#| | | | | commands
#| | | | | |
#
*/2 1 * * * /usr/local/bin/lynx -dump https://www.mydomain.co.uk/cart/myscript.php
I also tried to create a shell script with
Code:
#!/bin/sh
lynx -dump https://www.mydomain.co.uk/cart/myscript.php
Code:
*/2 1 * * * /root/tools/cart_cron.sh >> /dev/null 2>&1
If I run the script manually then it all work. same for lynx, manually everything is fine
Any sugestion?