Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Troubleshooting • Re: Cannot schedule script via cronjob that runs manually

$
0
0
logs, logs, and more logs!!

Code:

* * * * * /bin/bash /home/pi/scripts/restart_pic_service.sh >> home/pi/log/log 2>&1
your already capturing the logs, but you missed the leading /, so it may fail
fix that path, and then do the same for every other line, and see what the logs say

Code:

. /home/pi/scripts/mon.sh
you also shouldnt need that . there, just "/home/pi/scripts/mon.sh" should work, if youve done things correctly

Code:

30 16 * * 1-5 /bin/bash /home/pi/scripts/mon.sh
same here, you dont need the /bin/bash
the #!/bin/bash already tells the system to use bash

Statistics: Posted by cleverca22 — Mon Jun 16, 2025 5:35 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles