11
rest(){
echo "have a rest in "$1 " minutes"
at -f /home/rest.sh now+$1 minutes
}
編輯rest.sh腳本。休息時可以簡化命令嗎?
vim /home/rest.sh
xscreensaver-command --lock
要測試它。
rest 60
have a rest in 60 minutes
warning: commands will be executed using /bin/sh
job 7 at Thu Feb 9 11:15:00 2017
可以簡化at
命令嗎?
要刪除/home/rest.sh,以管道或其他方式傳遞參數?