jason writes.. >I am using a perl script to pull down some IIS logs so >webtrends can run >reports on them (I know that webtrends can do it, but that program has >more holes than....something holey. I hate it. Anyway....) and I have >the following problem. > >The ncftpget program will print success messages to STDOUT and error >messages to STDERR. I want to send out an email summary to myself and >the other person responsible for these reports, but if I do this: > >$status .= `ncftpget ./truckerbuddy/ >$log_path_trucker_buddy/$logfilename 2>>&1`; > >I am only receiving error messages.
That shouldn't be the case, but anyway - your following paragraph negates this method for other reasons. >Any help? I would ideally like to be able to have a variable that >catches the positive text and one that catches the negative so >I can sum >it up nicely in an email. You should use IPC::Open3 which allows you to tie the STDOUT and STDERR from a command to different filehandles and then read from them. -- Jason King _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
