$ q -- echo 1
$ q
1
$ q -- echo 2
$ q -- echo 3
$ q -- echo 4
$ q -n 2
2
3
$ q -n 2
4
No more q!!
$ q -- <command>
<command>
is shell command what you want to push/to do later.
--
is a delimitar. This is optional but recommended for non-ambiguious command parsing.
<command>
に push (つまり後で実行) したいコマンドを書く.
ただしコマンドの曖昧性を排除するため --
を前につけておくことを推奨.
$ q
q
pops a job, then execute it.
単に q
と実行すればキューから一つジョブを取り出して実行する.
q
can pop multiple jobs and execute them.
複数取り出して逐次実行する為に次のオプションを使う.
$ q [-n/--num <num>] [-i/--interval <sec>]
-n
is the number of jobs you want to pop.
-i
is the interval seconds for jobs.
-n
で取り出すジョブの個数を指定する.
--interval
はその際にジョブとジョブの間に何秒間のインターバルを置くかを指定する.
$ q show
Shows all queue (including history).
キューに登録されたジョブを履歴を含めて全て表示する.
$ q show --tail 10 --filter 'done==false or failed > 0'
$ q revive <JOB_ID>
Revives a job which failed into the queue.
失敗したジョブをもう一度キューに入れ直す.
$ q rm <JOB_ID>
Remove the job from the queue (removed also from history).
リストから完全に消す.
If you want clear the queue and history, remove the file .q
.
すべてのリスト履歴を抹消するには .q
を消す.
$ rm .q