my @bob = `ncftpget ./truckerbuddy/ > $log_path_trucker_buddy/$logfilename 2>>&1`;

Should work.

Cheers,
John

> -----Original Message-----
> From: jason scott gessner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 07, 2003 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: Capturing backtick output
> 
> 
> Hi there.
> 
> 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. 
> 
> 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.
> 
> Thanks!
> 
> - jason scott gessner
>     [EMAIL PROTECTED]  
> 
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to