GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AnyEvent::Subprocess::DefaultDelegates(3) User Contributed Perl Documentation AnyEvent::Subprocess::DefaultDelegates(3)

AnyEvent::Subprocess::DefaultDelegates - sets up default delegate name/builder mappings

version 1.102912

Provides connections to an arbitrary filehandle / fd / pipe / socket / etc.

See AnyEvent::Subprocess::Job::Delegate::Handle

Provides connections to the child's STDIN/STDOUT/STDERR handles. Delegates are named stdin/stdout/stderr. Optional arg prefix adds a prefix string to the delegates' names.

Provides a (bidirectional) socket to be shared between the child and parent. Optional arg name provides delegate name (so you can have more than one, if desired).

Optional arg name controls name; defaults to 'comm.

Provides the child with stdin and stdout attached to a pseudo-tty, and provides the parent with a delegate to control this. Optional arg stderr controls whether or not the child's stderr will also go to the pty; defaults to no.

Optional arg name controls name; defaults to 'pty'.

Supplies a delegate that is a AnyEvent::Condvar that is sent the child exit information ("Done class") when the child process exits.

Sets up an AnyEvent::Subprocess::Job::Delegate::Callback delegate. Optional argument name controls callback instance name; defaults to 'callback'.

Captures a handle. Mandatory arg handle is the name of the handle delegate to capture. The handle must be readable by the parent. (i.e., a socket or a pipe from the child to the parent.)

Delegate is named '[handle name]_capture'.

(Note that you should not use the captured handle for reading anymore; this delegate will steal all input. Captured output is returned in via a delegate in the "done class".)

Calls a list of coderefs whenever a line is read from a handle.

Delegate that calls a callback in the child to print the exception (if any) the child throws.

Use WithResult if you want to actually get the exception in the parent.

Kill the subprocess with a signal "kill_with" after "timeout" seconds elapse. See AnyEvent::Subprocess::Job::Delegate::Timeout.

See the test suite to see all of these shortcuts in use.

Jonathan Rockway <jrockway@cpan.org>

This software is copyright (c) 2011 by Jonathan Rockway.

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

2011-02-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.