34
35

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.

crontab 曜日設定などメモ

Last updated at Posted at 2015-07-16

参考URL

編集

crontab [-u ユーザー] -e

閲覧

crontab [-u ユーザー] -l

書式

分 時 日 月 曜日 コマンド

曜日の書き方

曜日を「0~7」(0,7は日曜日)または「sun~sat」で指定。ワイルドカード(*)を指定すると毎日。

0 sun
1 mon
2 tue
3 wed
4 thu
5 fri
6 sat

サンプル

*/5 * * * 5 /usr/bin/python test.py > /tmp/test.log 2>&1

毎週金曜日だけ5分毎で実行。コマンドのpathは明示的にfull pathにしておくとdebugしやすいtips

34
35
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
34
35

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?