Last active
September 11, 2016 11:30
-
-
Save acro5piano/6609860bb0cc010cc6539f1731ae822c to your computer and use it in GitHub Desktop.
Bashにアラーム機能を搭載する ref: http://qiita.com/acro5piano/items/5008584c0458354a797e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# この関数を~/.bash_aliasesなどに書いておく | |
alarm(){ | |
echo "echo $1 | cowsay | wall" | at $2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# アラームをセット | |
alarm 'The meeting with my boss will start in 10 minutes' 9:50 | |
# => job 22 at Thu Jun 1 9:50:00 2016 | |
# アラーム一覧 | |
atq | |
# => 22 Thu Jun 1 9:50:00 2016 a k-gosho | |
# JobIDを指定してアラームを削除 | |
at -d 22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment