App-FirefoxUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  firefox_is_running
    Usage:

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

    Check whether Firefox is running.

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

    This function is not exported by default, but exportable.

    Arguments ('*' denotes required arguments):

    *   cmndline_pat => *re_from_str*

        Filter processes using regex against their cmndline.

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

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

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

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

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

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

=head2 firefox_is_running

Usage:

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

Check whether Firefox is running.

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

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

=over 4

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

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

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

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

B<firefox-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|/"--verb...

=head1 DESCRIPTION

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

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over



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