cc getSystemStatusなど、システムの状態を監視するようなccコマンドを一定間隔で実行したい場合は「-r」オプションを付与します。
例えば、以下のように「-r5」と入力した場合は、5秒間隔でgetSystemStatusが実行されるようになります。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# cc getSystemStatus -r5 repeating the command 'getSystemStatus' every 5 seconds, enter CTRL-D to stop getsystemstatus Tue Aug 19 07:14:55 2014 System calpont-1 System and Module statuses Component Status Last Status Change ------------ -------------------------- ------------------------ System ACTIVE Mon Aug 18 17:59:29 2014 Module pm1 ACTIVE Tue Aug 12 16:38:12 2014 getsystemstatus Tue Aug 19 07:17:32 2014 System calpont-1 System and Module statuses Component Status Last Status Change ------------ -------------------------- ------------------------ System ACTIVE Mon Aug 18 17:59:29 2014 Module pm1 ACTIVE Tue Aug 12 16:38:12 2014 |
停止したい場合はCtrl+Dキーを押します。