The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Siebel::Srvrmgr::Daemon - IPC functionality for Siebel::Srvrmgr classes.

SYNOPSIS

        use Siebel::Srvrmgr::IPC qw(safe_open3);

        my ( $pid, $write_h, $read_h, $error_h ) = safe_open3( \@params );

DESCRIPTION

This module exports a single function (safe_open3) used for running a external program, reading it's STDOUT, STDERR and writing to STDIN by using IPC.

This module is based on IPC::Open3::Callback from Lucas Theisen (see SEE ALSO section).

EXPORTS

safe_open3

safe_open3 functions executes a "safe" version of IPC::Open3 that will execute additional processing required for using select in Microsoft Windows OS (if automatically detected). For other OS's, the default functionality of IPC::Open3 is used.

Expects as parameter an array reference with the external program to execute, including the arguments for it.

Returns (in this order):

  1. The PID of the child process executing the external program.

  2. The writer handle to the child process.

  3. The reader handle to the child process.

  4. The error handle for the child process.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org<>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

This file is part of Siebel Monitoring Tools.

Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.