NAME
lsjobs - List your jobs (or others), and delete them if you wish
VERSION
version 0.7.1
SYNOPSIS
lsjobs [options] [jobid ... | pattern]
DESCRIPTION
This script lists the jobs and provides the option to delete them. It allows filtering the jobs based on various criteria such as user, name, and status.
OPTIONS
- -u, --user <username>
-
Show only jobs from the specified user. Default: current user.
- -n, --name <pattern>
-
Show only jobs with the specified name pattern. Default: .+ (matches any name).
- -s, --status <pattern>
-
Show only jobs with the specified status pattern. Default: .+ (matches any status).
- -r, --running
-
Show only running jobs.
- -t, --tab
-
Output in simple TSV format (tip: pipe to
vd
for interactive table) - -d, --delete
-
Delete the selected jobs. This option must be used with caution, but an interactive prompt is provided
- --verbose
-
Display verbose output.
If a single job is selected, for example by giving a precise ID, the full job details will be displayed.
- --help
-
Print the help message and exit.
ARGUMENTS
- jobid ... | pattern
-
Optional. Specify either job IDs (many) or a pattern (single) to filter the jobs based on their names.
EXAMPLES
- Example 1:
-
List all jobs:
lsjobs
- Example 2:
-
List jobs with the name "myjob":
lsjobs -n myjob
- Example 3:
-
List running jobs of a specific user:
lsjobs -r -u username
- Example 4:
-
Delete some of my jobs (only pending, and with name containing MEGAHIT):
lsjobs -d --pending MEGAHIT
AUTHOR
Andrea Telatin <proch@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2023 by Andrea Telatin.
This is free software, licensed under:
The MIT (X11) License