Job ID regular expression
The Regexp for job id regular expression is matched on the output from your submit command. The first bracketed expression in the regular expression is used as the job ID. The elements listed in the table are available in addition to the conventional quantifiers, range and exclusion operators.
Element |
Matches |
---|---|
|
A character represents itself |
|
A tab |
|
Any character |
|
Any digit |
|
Any non-digit |
|
White space |
|
Non-white space |
|
Letters or numbers (a word character) |
|
Non-word character |
For example, your submit program might return the output job id j1128
has been submitted
. One possible regular expression for retrieving the
job ID is id\s(.+)\shas
.
If you would normally remove the job from the queue by typing
job_remove j1128
, you must enter job_remove JOB_ID_TAG
as the cancel command.