3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

一定周期でコマンド実行

Posted at

while true; do date; sleep 1; done;

一秒間隔で時刻表示。

while true; date; do ls; sleep 1; done;

一秒間隔で時刻とファイル表示。
ファイルの存在監視とか時間付きでログが取れるかもしれない。

while true; echo '----------------------------------------------'; date; echo '----------------------------------------------'; do ls; sleep 1; done;

見た目がちょっとあれなので、線入れてみた。

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?