LoginSignup
2
1

More than 5 years have passed since last update.

CLI | terminalで1行 while Loop

Last updated at Posted at 2015-04-06

最近 githubでプッシュしにくいなった。プッシュのときに下のコマンドやってた。プッシュ失敗したら、Loopだから毎回プッシュしていく

$ while true; do push_current_branch; sleep 5; done

サーバーのメモリー管理時とか

$ while true; do free -m; sleep 5; done

いろんなツールとかあると思いますが、たまにシンプルなコマンドでも便利。

2
1
2

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
2
1