Suspend after delay via SSH
Posted
by
thornate
on Ask Ubuntu
See other posts from Ask Ubuntu
or by thornate
Published on 2012-10-11T01:37:48Z
Indexed on
2012/10/11
3:52 UTC
Read the original article
Hit count: 411
I know how to suspend after a delay by using:
echo 'pmi action suspend' | at now + 1 minutes
However, that only seems to work as long as I keep the console window open. Am I correct in assuming that the at commands are cleared when I close the console?
This is an issue as I want to be able to log in to my computer via SSH, send the suspend command, then log out before it happens. Suspending immediately tends to freeze my local console window, which is inconvenient. Is there a way to send a delayed suspend command without it being cleared when I log out?
© Ask Ubuntu or respective owner