On 6/27/05, Pablo Wolter <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have some troubles to figuring out by myself a way to add the output
> of a script that I run by system function in perl into a logger. The
> code I have is:
[snip]
> print LOG "------ $hostName Database backup\n";
> print LOG "------ Database backup started at: $timeStamp\n\n";
> 
> system("$makeBackup >> $errorLogFile"); # this i want on the logger

You can do:

print LOG qx"$makeBackup";

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to