LoginSignup
10
10

More than 5 years have passed since last update.

リモートマシンの長いコマンドが終了したらGrowl通知

Last updated at Posted at 2012-02-17

ローカルの開発ならtypesterさんの

で出来るけど、リモートマシンでもコマンドの終了をGrowl通知したい。
現在のところ、以下の方法に落ち着いている。

  1. http://qiita.com/items/1958 で適当な文字列(ここでは "Finish!" とする)をGrowl通知するようiTermに設定する
  2. リモートマシンで終了を通知したいコマンドを実行するさい以下のようにする
growl.sh
$ some_long_command; echo 'Finish!'  # Finish! をGrowl通知するようiTermに設定しておく

これでリモートマシンでも長いコマンドの終了をGrowl通知できる。
なお ; echo 'Finish!' と毎回打つのはだるいので適当なaliasを貼っておくと楽。

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10