0
0

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.

cronの設定

Posted at

cronの設定

crontabの設定方法について
cronとはスクリプトを定期実行するデーモン

状態確認と起動

/etc/rc.d/init.d/crond status
/etc/rc.d/init.d/crond start

cronの実装 ユーザのcrontabに追加

crontab -e

時間の書き方
毎日7時30分に/home/hoge/homge.shを実行する
[分] [時] [日] [月] [曜日] [コマンド]

30 7 * * * /home/hoge/homge.sh

n秒毎にスクリプトを実行する

未実証

* * * * * for i in `seq 0 5 59`;do (sleep ${i}; 【実行したいコマンド】 ) & done;
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?