App-ChromeUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  chrome_is_running
    Usage:

     chrome_is_running(%args) -> [$status_code, $reason, $payload, \%result_meta]

    Check whether Chrome is running.

    Chrome is defined as running if there are some Chrome processes that are
    *not* in 'stop' state. In other words, if Chrome has been started but is
    currently paused, we do not say that it's running. If you want to check
    if Chrome process exists, you can use "ps_chrome".

    This function is not exported.

    Arguments ('*' denotes required arguments):

    *   cmndline_pat => *re_from_str*

        Filter processes using regex against their cmndline.

lib/App/ChromeUtils.pm  view on Meta::CPAN

    App::BrowserUtils::_do_browser('is_paused', 'chrome', @_);
}

$SPEC{chrome_is_running} = {
    v => 1.1,
    summary => "Check whether Chrome is running",
    description => <<'_',

Chrome is defined as running if there are some Chrome processes that are *not*
in 'stop' state. In other words, if Chrome has been started but is currently
paused, we do not say that it's running. If you want to check if Chrome process
exists, you can use `ps_chrome`.

_
    args => {
        %App::BrowserUtils::args_common,
        %App::BrowserUtils::argopt_quiet,
    },
};
sub chrome_is_running {
    App::BrowserUtils::_do_browser('is_running', 'chrome', @_);

lib/App/ChromeUtils.pm  view on Meta::CPAN

=head2 chrome_is_running

Usage:

 chrome_is_running(%args) -> [$status_code, $reason, $payload, \%result_meta]

Check whether Chrome is running.

Chrome is defined as running if there are some Chrome processes that are I<not>
in 'stop' state. In other words, if Chrome has been started but is currently
paused, we do not say that it's running. If you want to check if Chrome process
exists, you can use C<ps_chrome>.

This function is not exported.

Arguments ('*' denotes required arguments):

=over 4

=item * B<cmndline_pat> => I<re_from_str>

script/chrome-is-running  view on Meta::CPAN

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

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

B<chrome-is-running> [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|/"--verbo...

=head1 DESCRIPTION

Chrome is defined as running if there are some Chrome processes that are I<not>
in 'stop' state. In other words, if Chrome has been started but is currently
paused, we do not say that it's running. If you want to check if Chrome process
exists, you can use C<ps_chrome>.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over



( run in 1.595 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )