memo.xight.org

/ / memo.xight.org

2004-05-31

秒間隔でコマンドを繰り返し実行し続ける

- Summary
  netstat -i を1秒間隔で自動実行
- while と sleep を使ってシェルスクリプトを書く

$ while true; do date; netstat -i; sleep 1; clear; done;


- watch コマンドを使う

$ watch --interval 1 netstat -i


- Reference
  Landscape - 2004-05-28
  http://sonic64.com/2004-05-28.html#2004-05-28-1

カテゴリ: [Shell Script]
2004-05 /

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-09-05 14:14
Copyright © 2005 xight.org All Rights Reserved.