Run ls when the last job finishes and it passed (exit code 0)
$ job-B.ls
Run ls when last job finishes (pass / fail)
$ job-b.ls
Monitor job execution
$ job-WSat Aug 10, 2019 20:48:23 No jobs running, load: 0/0/0
Retry a job
$ job--retryls
Query Examples
NOTE. is available as an alias to the most recently executed
job (as in the Examples above).
View recently executed job log file
$ jobls$ view`job`# Opens the output from ls using "view"
View two most recently executed
$ jobecho1$ jobecho2$ view`job-n0-n1`
Query by job name
$ jobechofoo$ jobechobar$ view`job-gfoo`
Show job info by name
$ jobls$ job-sls
Configuration
The default configuration file location is ~/.config/jobrc, but can be
overridden using the –rc-file option.
Sample rcfile:
[mail]program=mail# For notifications over chat applications (like Google Chat), use chatmail as# your mail program instead. "chatmail" must be specified rather than a differently# named link to the script, else some options provided to job (such as --rc-file)# will not be passed through to it.# program = chatmaildomain=example.com[ui]watchreminder=full|summary#default=summary[chatmail]atall=all|none|noid#default=nonereusethreads=true|false#defaulttrue[chatmail.google-chat-userhooks]user1=https://chat.googleapis.com/v1/spaces/...[chatmail.google-chat-userids]# Retrieve this using your browser inspector on an existing mention of this user.# It should show up as "user/some_long_integer" somewhere in the span's metadata.user1=<longinteger>
System Notifications (Systemd user service example)
If you want to enable notifications when jobs finish, one way to do this is to use the –notifier
argument.