in reply to Modifying STDOUT and keeping control
Now you can print $wrh "some command"; and read back results with $var = <$rdh>; etc. Make sure to read Suffering from Buffering before you embark on that route.use IPC::Open2; my($rdh, $wrh); my $pid = open2($rdh, $wrh, "telnet", "192.168.1.1");
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Modifying STDOUT and keeping control
by Anonymous Monk on Oct 14, 2002 at 21:43 UTC | |
by iburrell (Chaplain) on Oct 14, 2002 at 23:27 UTC | |
by Aristotle (Chancellor) on Oct 14, 2002 at 23:14 UTC |