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 file:

open (MAIL, "|/usr/lib/sendmail -oi -t -v > $tmpfile") 
        or die "cant fork proc to mail\n";

If you really insist in piping it back to you, have a look at 
IPC::Open2. But keep in mind that this'll be a little tricky.

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to