Re: two way piped open

2005-08-24 Thread Bryan R Harris
end your output immediately. >> >> >> >> >> -Original Message- >> From: Bryan R Harris [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, August 24, 2005 1:51 PM >> To: Beginners Perl >> Subject: Re: two way piped open &g

Re: two way piped open

2005-08-24 Thread Bryan R Harris
then setting $| to 1. That way Perl > should send your output immediately. > > > > > -Original Message- > From: Bryan R Harris [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 24, 2005 1:51 PM > To: Beginners Perl > Subject: Re: two way piped open > >

RE: two way piped open

2005-08-24 Thread Timothy Johnson
24, 2005 1:51 PM To: Beginners Perl Subject: Re: two way piped open And a follow-on question: Any idea why I have to send the yprtool two "\n"s instead of one to make it work? With just one it hangs... On the command line, it definitely works with just one. -- To unsubscri

Re: two way piped open

2005-08-24 Thread Bryan R Harris
And a follow-on question: Any idea why I have to send the yprtool two "\n"s instead of one to make it work? With just one it hangs... On the command line, it definitely works with just one. ** ($y,$p,$r) = (split(' ', $lines[15]))[11..13]; use IPC::Open2;

Re: two way piped open

2005-08-24 Thread Bryan R Harris
That does it, thanks, Wiggins! - B > Bryan R Harris wrote: >> >> I'd like to open 2-way pipe to a tool that we have here. It's called >> yprtool and once it's open, you give it 3 numbers to its STDIN and it spits >> out 3 numbers to its STDOUT. It stays open until you ctrl-c it. >> >> Wha

Re: two way piped open

2005-08-24 Thread Wiggins d'Anconia
Bryan R Harris wrote: > > I'd like to open 2-way pipe to a tool that we have here. It's called > yprtool and once it's open, you give it 3 numbers to its STDIN and it spits > out 3 numbers to its STDOUT. It stays open until you ctrl-c it. > > What's the correct syntax for opening something like

two way piped open

2005-08-24 Thread Bryan R Harris
I'd like to open 2-way pipe to a tool that we have here. It's called yprtool and once it's open, you give it 3 numbers to its STDIN and it spits out 3 numbers to its STDOUT. It stays open until you ctrl-c it. What's the correct syntax for opening something like this? This doesn't work: *