Skip to main content

All Questions

Tagged with
1 vote
2 answers
345 views

What happens if shutdown command kills my unison cron job?

I have an Arch linux box at home that I power off quite frequently (the power supply is noisy and it annoys my girlfriend...!). The box has a number of cron jobs running the unison utility, designed ...
user1911388's user avatar
1 vote
1 answer
401 views

What permissions do I need to give my user to run "shutdown -r 5" command from cron?

I’m have a bash script that I run in /etc/crontab on Linux $ uname -a Linux mymachine.com 3.4.76-65.111.amzn1.x86_64 #1 SMP Tue Jan 14 21:06:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux The bash ...
Dave's user avatar
  • 71
4 votes
1 answer
1k views

system-wide crontab vs. user crontab to shutdown pc

I'm trying to shutdwon my pc at 2 am once a week. If I use the user crontab of root (sudo crontab -e) 30 2 * * 3 shutdown -h now the shutdown will not be performed. However, if I place the same ...
Philippe's user avatar
  • 937