App-BrowserUtils

 view release on metacpan or  search on metacpan

script/kill-browsers  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/BrowserUtils/terminate_browsers
# 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-BrowserUtils'; # DIST
our $VERSION = '0.019'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/BrowserUtils/terminate_browsers",
    program_name => "kill-browsers",
    log => 1,
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Terminate browsers (by default with -KILL)
# PODNAME: kill-browsers

__END__

=pod

=encoding UTF-8

=head1 NAME

kill-browsers - Terminate browsers (by default with -KILL)

=head1 VERSION

This document describes version 0.019 of kill-browsers (from Perl distribution App-BrowserUtils), released on 2023-10-28.

=head1 SYNOPSIS

B<kill-browsers> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<kill-browsers> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<kill-browsers> [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<--signal>=I<s>, B<-s>

(No description)


=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>



( run in 0.690 second using v1.01-cache-2.11-cpan-39bf76dae61 )