NAME

App::MonM::Checkit::Command - Checkit Command subclass

VIRSION

Version 1.01

SYNOPSIS

<Checkit "foo">

    Enable  yes
    Type    command
    Command     ls -la
    Target      content
    IsTrue      !!perl/regexp (?i-xsm:README)

    # . . .

</Checkit>

Or with STDIN pipe:

<Checkit "foo">

    Enable   yes
    Type     command
    Command  perl
    Content  "print q/Oops/"
    Target   content
    IsTrue   Oops
    Timeout  5s

    # . . .

</Checkit>

DESCRIPTION

Checkit Command subclass

check

Checkit method. This is backend method of "check" in App::MonM::Checkit

Returns:

code

The exit status code (ERRORLEVEL, EXITCODE)

content

The STDOUT response content

error

The STDERR response content

message

OK or ERROR value, see "status"

source

Command string

status

0 if error occured (code != 0); 1 if no errors found (code == 0)

CONFIGURATION DIRECTIVES

The basic Checkit configuration options (directives) detailed describes in "CONFIGURATION DIRECTIVES" in App::MonM::Checkit

Command
Command  "perl -w"

Defines full path to external program (command line)

Default: none

Content
Content     "print q/Blah-Blah-Blah/"

Sets the content for command STDIN

Default: no content

Timeout
Timeout    1m

Defines the execute timeout

Default: off

HISTORY

See Changes file

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

App::MonM

AUTHOR

Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2022 D&D Corporation. All Rights Reserved

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See LICENSE file and https://dev.perl.org/licenses/