at
at, batch, atq, atrm – 後で実行するコマンドジョブをキューに入れたり、そのようなジョブの閲覧・削除を行なう
Manpage of AT
test.shを1分後に実行
$ at -f ./test.sh now 1minute
test.shを13:00に実行
$ at -f ./test.sh 13:00
パイプでつないで
$ echo './test.sh' | at now 1minute
シェルから
$ at now + 1minute warning: commands will be executed using /bin/sh at> './test.sh' at>job 11 at Wed Aug 11 13:12:00 2010
実行されていないジョブ一覧
$ atq
実行されていないジョブの削除
atqでジョブIDを取得して指定
$ atq 1 Wed Aug 11 13:00:00 2010 a cockok $ atrm 1
カテゴリー: linux