I have a little Bash script that pauses the computer after a specified number of minutes. However, I would like to extend it to tell me what time it will be when it will be suspended, so I can get a general idea of ββhow long I left, so to speak.
#!/bin/sh let SECS=$1*60 echo "Sleeping for" $1 "minutes, which is" $SECS "seconds." sleep $SECS && pm-suspend
The only argument for the script will be the time after which the computer should be suspended after a few minutes. All I want to add to this script is basically echo , for example, for example. "Sleeping up to HH: nn: ss!". Any ideas?
date bash time sleep
Deniz dogan
source share