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

Raspberry Pi OS • Re: Reboot using crontab

$
0
0
@thagrol
I had removed sudo from the crontab text (it was m h * * * sudo reboot) when you said it was not required but it does not reboot without it, so I have now re-instated sudo and it works perfectly.
Something is odd then. Root's crontab runs as the root user and should have all the privileges it needs to run the "reboot" command.

As noted, using "sudo reboot" as the command is not harmful, but whatever is odd, may reach out and bite you in some other way.

Statistics: Posted by bjtheone — Fri Mar 08, 2024 3:50 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles