I have a script that runs but it outputs everything onto the screen instead of a file.
I've tried using the > outputfile.txt however all it does is dump the output to the screen and creates an outputfile.txt but doesn't put anything in that file.
im not 100% sure as it is not my script and i'm not all that familiar with it but i'll paste some of it:
print STDERR "All done\n\n";
sub rprtProgress {
my ($skip) = @_;
$count++;
if (defined $skip and $skip>1) {
if ($count % $skip == 1) {
print STDERR "\n\n" if ($count < $skip);
my $end = $count + $skip - 1;
print STDERR "\x1b[1A reading record $count to $end \n";
}
} else {
print STDERR "\x1b[1A reading record $count \n";
}
}
sub rprtCount {
print STDERR "Total number of records = $count\n";
}
}
i've tried doing
./myscript "Public" &> outputfile.txt
and it gives me a Invalid null command... the "Public" is part of the script
---------- Post updated at 08:48 AM ---------- Previous update was at 08:46 AM ----------