On Thu, 2010-11-11 at 18:48 -0600, Paul Gilmartin wrote:
> On Thu, 11 Nov 2010 17:45:12 -0500, Leonard Sasso wrote:
> 
> >The following worked great:
> >
> >lcd /local/zos/directory/for/file
> >get remote.file
> >!chmod 644 remote.file
> >
> When I use FTP to transfer files intended to be read
> by an automated or asynchronous process, I always move
> to a temporary file, then rename.  This eliminates any
> possibility of the asynchronous process's observing a
> transfer in progress and getting invalid data.
> 
> -- gil
> 

We use that method too. We also use a "trigger file" method where we ftp
the real data, then ftp a very small file. The remote system knows the
first file is complete when the second one appears. In addition, we have
a different ftp server called "Beyond FTP" which integrates scripting so
that it can do things after it successfully receives/sends a file. On
Linux, you could use inotify or ProFTPD to do something similar.

-- 
John McKown
Maranatha! <><

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to