On Fri, 13 Jul 2001 [EMAIL PROTECTED] wrote:

> Hi folks,
>
> I'm putting together simple script for doing dumps.  I have the command running but 
>I can't get the output to write to my log file.
> I keep getting errors and have tried several things and none of it works.  Please 
>help.
>
> Here is a sample of what I'm doing :
>
> while ( my $line = <IN>){
>  (system `ufsdump 0uf /dev/rmt/0n $line`);

You are using the system call, but using backticks.  This would mean that
system will try to execute whatever the output is from the command
executed by the backtick operator.  Not what you wanted, I'm sure.  Also,
you are printing $_ to FILEOUT, but what are you expecting $_ to be?
Since you are assigning $line to whatever is read from IN, I think what
you are expecting $_ to be isn't.

>  print FILEOUT $_;
>
> I already have my filehandles defined.  I'm not sure what is wrong.

Did you test for failure when you opened the files?

-- Brett

                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
A soft answer turneth away wrath; but grievous words stir up anger.
                -- Proverbs 15:1


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

Reply via email to