Quantcast
Channel: proc_open: Extending file descriptor numbers to enable "status" feedback from a Perl script - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Greg Bacon for proc_open: Extending file descriptor numbers to...

Say you want to monitor the progress of a hello-world program, where each step is a dot written to the designated file descriptor. #! /usr/bin/env perl use warnings; use strict; die "Usage: $0...

View Article


Answer by mob for proc_open: Extending file descriptor numbers to enable...

You open a new filehandle and dup it to file descriptor 3: open STD3, '>&3'; print STDERR "foo\n"; print STD3 "bar\n"; $ perl script.pl 2> file2 3> file3 $ cat file2 foo $ cat file3 bar...

View Article

proc_open: Extending file descriptor numbers to enable "status" feedback from...

PHP's proc_open manual states: The file descriptor numbers are not limited to 0, 1 and 2 - you may specify any valid file descriptor number and it will be passed to the child process. This allows your...

View Article
Browsing latest articles
Browse All 3 View Live