Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 17609

a command to turn off or reboot the system

17
votes
repeatedly. You can use this to perform a system shutdown after process termination like this (replace 2296 by the pid to wait for): su -c 'while [[ -d /proc/2296 ]]; do sleep 1; done; poweroff … ' Advantages: You can decide whether or not to shutdown after setting off the shell command The shutdown is issued as root, the command to wait for is not necessarily done as root (no need to workaround the …
answered Feb 17 '13 by moooeeeep