Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(tye)Re: IPC::Open3 woes

by tye (Sage)
on Mar 11, 2002 at 16:02 UTC ( [id://150904]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pid = open3("<&STDIN", ">&OUTPUT", ">&ERRLOG", $cmd) or die "$!";
  2. or download this
    #!/usr/local/bin/perl
    
    # Script to test IPC::Open3
    ...
    close(ERRLOG) or die "Can't close filehandle! $!";
    close(OUTPUT) or die "Can't close filehandle! $!";
    defined( my $x= <STDIN> ) or warn "Can't read STDIN: $!\n";
    
  3. or download this
    PID was 416
    readline() on closed filehandle main::STDIN at open3.pl line 32.
    Can't read STDIN: Bad file descriptor
    
  4. or download this
    open( IN, "<&STDIN" ) or die "...: $!\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found