Suspend after delay via SSH
- by thornate
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?