in reply to perl, open and pipe
What am I doing wrong here?I think the pipe is messing everything up.
No, the pipe is fine. Jusr redirect stderr (fileno 2) to stdout (fileno 1):
open(SY, "echo blablabla|/usr/bin/js 2>&1|") or die "$!"; while(<SY>){ print ">>$_"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl, open and pipe
by afoken (Chancellor) on May 11, 2010 at 05:33 UTC | |
by shmem (Chancellor) on May 11, 2010 at 07:48 UTC |