The SimpleHelp blog has a nice post about this useful command. Haven’t tested this yet but I’ll do so now and edit later to let you know if it worked or not.

# at -f /sbin/shutdown -h now -v 00:00

Well, actually that doesn’t work but only because of the command I asked At to schedule for me. It only handles scripts. So, to do the shutdown that I wanted, I wrote this little script (named ~/shutdownx):

#!/bin/bash
killall opera
sleep 2
/sbin/shutdown -h now

Now the command

# at -f ./shutdownx -v 00:00

works fine.

Advertisement