Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone give me a hand? here's what i have so far:
local (*HIS_IN, *HIS_OUT, *HIS_ERR); my $pid = open3(*HIS_IN, *HIS_OUT , *HIS_ERR, "cleartool setcs $CS_FIL +ENAME"); while(<HIS_OUT>){ print "$_"; if (<HIS_ERR>){ print HIS_IN "yes\n"; } } close HIS_IN; close HIS_OUT; waitpid($pid,0);
This seems to get stuck in an infinite loop. This seems like it sends in the "yes" because the update continues (and i'd want to send in a "yes" to ANY of those updates..which is why there's no regex)...but something happens later on and the process seems to hang.
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IPC::open3 obfuscification
by tilly (Archbishop) on Dec 17, 2008 at 02:27 UTC | |
|
Re: IPC::open3 obfuscification
by ikegami (Patriarch) on Dec 17, 2008 at 02:30 UTC | |
by tilly (Archbishop) on Dec 17, 2008 at 02:42 UTC | |
by Dcole (Initiate) on Dec 17, 2008 at 02:45 UTC | |
by tilly (Archbishop) on Dec 17, 2008 at 03:06 UTC | |
by Dcole (Initiate) on Dec 17, 2008 at 17:33 UTC | |
|
Re: IPC::open3 obfuscification
by Anonymous Monk on Dec 17, 2008 at 01:37 UTC | |
by Dcole (Initiate) on Dec 17, 2008 at 01:38 UTC | |
by ww (Archbishop) on Dec 17, 2008 at 02:26 UTC |