f-prot autoupdate error
Julian Field
mailscanner at ecs.soton.ac.uk
Sun Jul 7 14:12:12 IST 2002
At 04:22 07/07/2002, you wrote:
>This is strange!!! I put in a few print statements to check but not sure
>what happened to the print "zzz $Server, $FileToCheck\n"; statement.
>Seems putting two of them together giving problems???!!!
You need to "print STDERR" not just "print". STDERR is line-buffered
whereas stdout is block-buffered. So if you bail out with an error you
can't guarantee that all of stdout will be output before the program stops
with an error.
>##### modified code ####
> print STDERR "There is a new version of $FileToCheck, starting
>download.\n"
> unless $quiet;
> $updated = 1;
> # Download it from the server
>print "xxx $FileToCheck\n";
>print "yyy $Server\n";
>print "zzz $Server, $FileToCheck\n";
> DownloadFile($Server, $FileToCheck);
>##########
>
>******* results *****
>FTP address for retrieving files is
>ftp://ftp.isnet.is/pub/customers/complex.is/
>File SIGN.DEF is already up to date.
>File SIGN2.DEF is already up to date.
>F-Prot signature file update script
>There is a new version of MACRO.DEF, starting download.
>xxx MACRO.DEF
>yyy ftp://ftp.isnet.is/pub/customers/complex.is/
>, MACRO.DEFtp.isnet.is/pub/customers/complex.is/
>Download from http://updates.f-prot.com/files/ failed, exiting., Bad file
>descriptor at /usr/local/f-prot/autoupdate line
> 285, <TEMPFILE> line 4.
>***********
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list