3 usage_help_text
="qrm [<OPTIONS>] <TASK-ID> [<TASK-ID> [...]]
4 Remove specified queued or ended task(s) from the queue.
5 May force removing gone tasks as well.
17 echo "qrm: missing task id." >&2
27 echo "qrm: empty task ID" >&2
31 if [[ $task_id =~
/ ]]
33 echo "qrm: invalid task ID: $task_id" >&2
38 state
=`qtask_state "$task_id"`
39 if [ "$state" != queued
-a "$state" != ended
]
42 if [ "$state" = gone
]
53 echo "qrm: task $task_id is $state. not removing." >&2
57 if [ -e "$queue_dir/$task_id.comm" ]
59 rm "$queue_dir/$task_id".
*
61 echo "qrm: task $task_id is not found." >&2