検索条件
全8件
(2/2ページ)
man 5 crontab
で使い方見るのが一番早い
*/2
のように表現できる
0-30/2
.---------------- minute (0 - 59)
| .------------- hour (0 - 23)
| | .---------- day of month (1 - 31)
| | | .------- month (1 - 12) OR jan,feb,mar,apr ...
| | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
| | | | |
m h dom mon dow usercommand
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
標準出力をパースして標準出力するコマンド。Perlが使える環境であればPerlでの代替も可能
ps aux
の実行パスの取得
ps aux | awk '{print $11}'
awk -F ","
awk "/any regexp/{getline; print}"
awk '{print gensub(/Foo: (.+)/, "\1", "g")}')