App-ChromeUtils

 view release on metacpan or  search on metacpan

script/ps-chrome  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/ChromeUtils/ps_chrome
# and generated automatically using Perinci::CmdLine::Gen version 0.502

use 5.010001;
use strict;
use warnings;
use Log::ger;

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-10-28'; # DATE
our $DIST = 'App-ChromeUtils'; # DIST
our $VERSION = '0.012'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/ChromeUtils/ps_chrome",
    program_name => "ps-chrome",
    log => 1,
    pass_cmdline_object => 1,
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: List Chrome processes
# PODNAME: ps-chrome

__END__

=pod

=encoding UTF-8

=head1 NAME

ps-chrome - List Chrome processes

=head1 VERSION

This document describes version 0.012 of ps-chrome (from Perl distribution App-ChromeUtils), released on 2023-10-28.

=head1 SYNOPSIS

B<ps-chrome> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<ps-chrome> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<ps-chrome> [B<L<--cmndline-pat|/"--cmndline-pat=s">>=I<L<re_from_str|Sah::Schema::re_from_str>>] [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [...

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--user>=I<s@>

Kill browser processes that belong to certain user(s) only.

Can be specified multiple times.

=item B<--users-json>=I<s>

Kill browser processes that belong to certain user(s) only (JSON-encoded).

See C<--user>.

=back

=head2 Filtering options

=over

=item B<--cmndline-pat>=I<s>

Filter processes using regex against their cmndline.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.


=item B<--exec-pat>=I<s>

Filter processes using regex against their exec.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.


=item B<--fname-pat>=I<s>

Filter processes using regex against their fname.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely
used to determine which processes are the browser processes.


=item B<--pid-pat>=I<s>

Filter processes using regex against their pid.

If one of the C<*-pat> options are specified, then instead of the default
heuristic rules to find the browser processes, these C<*-pat> options are solely



( run in 1.027 second using v1.01-cache-2.11-cpan-64ef6c95b5d )