Learn R Programming

bsub (version 1.1.0)

bjobs: Summary of jobs

Description

Summary of jobs

Usage

bjobs(status = c("RUN", "PEND"), max = Inf, filter = NULL, print = TRUE)

Value

A data frame with selected job summaries.

Arguments

status

Status of the jobs. Use "all" for all jobs.

max

Maximal number of recent jobs.

filter

Regular expression to filter on job names.

print

Whether to print the table.

Details

There is an additional column "RECENT" which is the order for the job with the same name. 1 means the most recent job.

You can directly type bjobs without parentheses which runs bjobs with defaults.

See Also

  • brecent shows the most recent.

  • bjobs_done shows the "DONE" jobs.

  • bjobs_exit shows the "EXIT" jobs.

  • bjobs_pending shows the "PEND" jobs.

  • bjobs_running shows the "RUN" jobs.

Examples

Run this code
if (FALSE) {
bjobs # this is the same as bjobs()
bjobs() # all running and pending jobs
bjobs(status = "all") # all jobs
bjobs(status = "RUN") # all running jobs, you can also use `bjobs_running`
bjobs(status = "PEND") # all pending jobs, you can also use `bjobs_pending`
bjobs(status = "DONE") # all done jobs, you can also use `bjobs_done`
bjobs(status = "EXIT") # all exit jobs, you can also use `bjobs_exit`
bjobs(status = "all", max = 20) # last 20 jobs
bjobs(status = "DONE", filter = "example") # done jobs with name '.*example.*'
}

Run the code above in your browser using DataLab