Hello,
I have a quick and simple question:
How do I make my Pi shutdown every day at the same time? I have already tried a few things, but is does not seem to work :S
Code: Select all
sudo crontab -eCode: Select all
0 0 * * * root /sbin/shutdown -h nowCode: Select all
0 21 * * * root /sbin/shutdown -h nowCode: Select all
52 15 * * * root halt
52 15 * * * root shutdown -h now
52 15 * * * root /sbin/shutdown -h nowSo if I'd replace the current line with:pluggy wrote:It works for me on latest Raspdian, not waiting for 21:00 just a minute or two ahead of the present time.
Code: Select all
52 15 * * * root halt 52 15 * * * root shutdown -h now 52 15 * * * root /sbin/shutdown -h now
Code: Select all
02 21 * * * root halt
02 21 * * * root shutdown -h now
02 21 * * * root /sbin/shutdown -h nowI know, but I was able to connect to the SSH server, so it did not halt at allpluggy wrote:Obviously it only halts the operating system, the Pi is still powered on afterwards. It would need some proper power management in the equation to actually turn it off.
Code: Select all
sudo nano /etc/crontabCode: Select all
2 21 * * * root /sbin/shutdown -h nowCode: Select all
2 21 * * * /sbin/shutdown -h now