简体   繁体   中英

Cron job suddenly not running php script?

I have a Raspberry Pi and cron jobs running bash scripts which run scripts in a PHP file.

They've been working fine for months, but cron now refuses to run two of them (see code of one of the bash scripts below). Getting cron to run the php scripts directly isn't working either.

Any ideas as to what can be wrong? I've tried all sorts but can't get cron to co-operate any more with these two scripts!

Example code of bash script:

#!/bin/sh
#<<END_SCRIPT
wget http://192.168.0.9/min.php -q
#END_SCRIPT

Thanks!

In cron expression at the end redirect stderr to file and see the error. Good Luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM