Guest User

Untitled

a guest
Jan 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. SYNOPSIS
  2. /sbin/shutdown [-akrhPHfFnc] [-t sec] time [warning message]
  3.  
  4. [...]
  5.  
  6. time When to shutdown.
  7.  
  8. shutdown -h 21:45
  9.  
  10. sudo apt-get install at
  11.  
  12. $ echo "ls > a.txt" | at now + 1 min
  13. warning: commands will be executed using /bin/sh
  14. job 3 at Thu Apr 4 20:16:00 2013
  15.  
  16. $ echo "ls > a.txt" > cmd.txt
  17. $ at now + 1 min < cmd.txt
  18. warning: commands will be executed using /bin/sh
  19. job 3 at Thu Apr 4 20:16:00 2013
  20.  
  21. $ at now + 1 min
  22. warning: commands will be executed using /bin/sh
  23. at> ls
  24.  
  25. $ at -t 201403142134.12 < script.sh
  26.  
  27. * * * * * command to be executed
  28. - - - - -
  29. | | | | |
  30. | | | | +----- day of week (0 - 6) (Sunday=0)
  31. | | | +------- month (1 - 12)
  32. | | +--------- day of month (1 - 31)
  33. | +----------- hour (0 - 23)
  34. +------------- min (0 - 59)
  35.  
  36. 04 14 * * * ls
  37.  
  38. 34 14 15 5 /path/to/command
  39.  
  40. echo "shutdown +5" | at 10:05am 2019-01-19
  41.  
  42. shutdown -r +1440
  43.  
  44. $ sudo shutdown -h 12:00
  45.  
  46. -h, -P, --poweroff
  47.  
  48. -r, --reboot
  49.  
  50. -c
Add Comment
Please, Sign In to add comment