HP3000-L Archives

September 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David T Darnell <[log in to unmask]>
Reply To:
David T Darnell <[log in to unmask]>
Date:
Wed, 12 Sep 2001 12:31:14 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
We have a number of FTP jobs that send files which might sometimes contain zero records.  This is not necessarily an error condition, but FTP prints a message "CONNECTION CLOSED;TRANSFER ABORTED", (but, IIRC, does not set FTPLASTERROR.)

Our STDLIST scanning product then picks up on the word "ABORTED", and someone gets to dial-in in the late evening to find out there is no problem.

Sure, we can pipe those mesages to $null and check FTP@ variables, removing important information from the $stdlist.

And we could easily test the file for emptyness, and not send it if empty, but it is desireable that the user on the other end see a new empty file (with new time stamp) rather than an old empty file or no file.

We could stuff an "empty file" message record into the empty file, ..... not quite elegant.

Ideally, empty files would get sent to the remote (NT) and no "ABORT" string of characters would be produced by FTP.

Whether FTP, by convention, is supposed to work this way is of academic interest, but not of practical utility.

Is there any configuration option, command, parameter, or other "trick" to make FTP act like send <emptyfile.txt> is A-OK?
Bound to be other imaginative workarounds from list members.  NOTE: file is fixed length, so cannot put a zero-length record into the file.

Thanks,

Dave

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2