Re: capture out put from piped process

2002-07-15 Thread Jenda Krynicky
From: "Jon Howe" <[EMAIL PROTECTED]> > How do I capture the output from sendmail running under the -v switch > back to my programme. > > The line I am using is - > > open (MAIL, "|/usr/lib/sendmail -oi -t -v") or die "cant fork proc to > mail\n"; The easier way is to pipe it into a temporary fi

Re: capture out put from piped process

2002-07-15 Thread drieux
On Monday, July 15, 2002, at 04:03 , Jon Howe wrote: > How do I capture the output from sendmail running under the -v switch back > to my programme. > > The line I am using is - > > open (MAIL, "|/usr/lib/sendmail -oi -t -v") or die "cant fork proc to > mail\n"; if you really want to 'catch' th

Re: capture out put from piped process

2002-07-15 Thread Daniel Gardner
Jon Howe wrote: > How do I capture the output from sendmail running under the -v switch back > to my programme. > > The line I am using is - > > open (MAIL, "|/usr/lib/sendmail -oi -t -v") or die "cant fork proc to > mail\n"; perldoc IPC::Open2 IPC::Run on cpan can do some clever stuff too