The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

whojobs - List the users with active jobs, and the number of jobs in the cluster

VERSION

version 0.9.0

SYNOPSIS

whojobs [options] [pattern]

DESCRIPTION

This script lists the users with jobs and the number of jobs they have in the cluster. It provides options for filtering the output and displaying verbose information.

OPTIONS

-n, --no-color

Disable color highlighting in the output.

-m, --min-jobs INT

Only show users with at least the specified number of jobs.

-v, --verbose

Display verbose output, including the total number of users with jobs, the total number of logged users, and the number of users printed.

ARGUMENTS

pattern

Optional. Specify a pattern to filter the users based on their names.

EXAMPLES

Example 1:

List all users with jobs:

whojobs
Example 2:

List users with at least 5 jobs:

whojobs -m 5
Example 3:

List users whose names contain "john":

whojobs john

OUTPUT

The output is a terminal tabular list in ascending order of jobs:

1 uubse              1   
2 alkbdjbh           2   
3 clyimmj            2   
4 bwark              2   
5 aiivebrd           4   
6 telatina           4  *
7 kwdenpa           10   
8 modhs             12   
9 bnvdn             21   
0 ifroalxy          24   

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