Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$pid = open2(*Reader,*Writer,$test_cmd);
Writer->autoflush();
Reader->autoflush();
print Writer "mypwd\n";
while (<Reader>) {
$output .= $_;
}
In mod perl , whatever I write to Writer using "print Writer " does not get reached to my program defined in $test_cmd. This works perfectly fine with only perl but not with mod perl,what might be the reason and any workaround
Any help would be greatly appreciated
Thanks
Sajid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open2 does not work in mod perl
by agianni (Hermit) on Jun 12, 2007 at 20:15 UTC | |
|
Re: open2 does not work in mod perl
by ides (Deacon) on Jun 12, 2007 at 18:32 UTC | |
by Anonymous Monk on Jun 14, 2007 at 09:49 UTC |