Skip to content
No description or website provided.
Perl
Find file
Latest commit 2618ee5 @robertkrimen Initial commit
Failed to load latest commit information.
lib/IPC/RunSession Initial commit
t Initial commit
xt Initial commit
.screenrc Initial commit
Changes Initial commit
GNUmakefile Initial commit
MANIFEST Initial commit
Makefile.PL Initial commit
README Initial commit

README

NAME
    IPC::RunSession::Simple - Run a simple IPC session in the same vein as
    IPC::Run & Expect

VERSION
    Version 0.001

SYNOPSIS
        use IPC::RunSession::Simple

        $session = IPC::RunSession::Simple->open( "fcsh" )

        # Read until the prompt (which doesn't end in a newline)
        # Timeout after 5 seconds
        $result = $session->read_until( qr/\(fcsh\) /, 5 )

        if ( $result->closed ) {
             # We encountered an (abnormal) EOF... 
        }
        elsif ( $result->expired ) {
            # The timeout got triggered...
        }
        else {
            print $result->content
        }

        # Tell 'fcsh' we want to quit
        $session->write( "quit\n" )

DESCRIPTION
    A simple IPC session with read/write capability using IPC::Open3 and
    IO::Select

SEE ALSO
    IPC::Run

    Expect

AUTHOR
    Robert Krimen, "<rkrimen at cpan.org>"

BUGS
    Please report any bugs or feature requests to "bug-ipc-runsession-simple
    at rt.cpan.org", or through the web interface at
    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IPC-RunSession-Simple>.
    I will be notified, and then you'll automatically be notified of
    progress on your bug as I make changes.

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc IPC::RunSession::Simple

    You can also look for information at:

    *   RT: CPAN's request tracker

        <http://rt.cpan.org/NoAuth/Bugs.html?Dist=IPC-RunSession-Simple>

    *   AnnoCPAN: Annotated CPAN documentation

        <http://annocpan.org/dist/IPC-RunSession-Simple>

    *   CPAN Ratings

        <http://cpanratings.perl.org/d/IPC-RunSession-Simple>

    *   Search CPAN

        <http://search.cpan.org/dist/IPC-RunSession-Simple/>

ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
    Copyright 2009 Robert Krimen.

    This program is free software; you can redistribute it and/or modify it
    under the terms of either: the GNU General Public License as published
    by the Free Software Foundation; or the Artistic License.

    See http://dev.perl.org/licenses/ for more information.

Something went wrong with that request. Please try again.