SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTP Transfert open file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTP Transfert open file
Author Message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post FTP Transfert open file Reply with quote

Using v3.4.1 I've created a script that will transfert
files from an FTP server to a W2K server. The contents
of for about up to 800 directories will have to
transfered.

Files may have a size of 40 to 150 Mb each.

How can I detect that a file has correctly been
uploaded to the FTP server (done by our clients)
before starting the transfer process between the
FTP server and the W2K server.

if you need any further information let me know

Thanks for helping
Robbert

Tue Jan 14, 2003 10:58 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: FTP Transfert open file Reply with quote

If you know the expected file size you can check the size.
For example if you clients provide data files and headers files describing data file name, size, date, etc... you can use this header information for file verification.

If files are in a format supporting some kind of a "signature" at the file end you can check for the presence of such "signature".

: Using v3.4.1 I've created a script that will transfert
: files from an FTP server to a W2K server. The contents
: of for about up to 800 directories will have to
: transfered.

: Files may have a size of 40 to 150 Mb each.

: How can I detect that a file has correctly been
: uploaded to the FTP server (done by our clients)
: before starting the transfer process between the
: FTP server and the W2K server.

: if you need any further information let me know

: Thanks for helping
: Robbert

Tue Jan 14, 2003 12:32 pm View user's profile Send private message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post Re: FTP Transfert open file Reply with quote

That is just the problem. We do not want to ask
the clients (or better, our client does not want this to ask their clients)
"This" is the use of signature files. TO us the files size is unknown.

Supplier A is uploading files to server B (FTP). We have to make sure that
the files are correctly transferred to server C (W2K)

We have been thinking of openening the file for write. If a trappable error
occurs we maty consider the file being in upload proccess.

Any other suggestion or is the signature file really the only way to be sure the file will be correctly transfered.

What will happen if the script will start transferring the file (from b to C) while the upload
proccess (from A to B) is running. I mean that we start the transfert while our client is uploading the file

: If you know the expected file size you can check the size.
: For example if you clients provide data files and headers files describing
: data file name, size, date, etc... you can use this header information for
: file verification.

: If files are in a format supporting some kind of a "signature" at
: the file end you can check for the presence of such "signature".

Tue Jan 14, 2003 1:02 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: FTP Transfert open file Reply with quote

If I understood you correctly you want to make sure that the file processing has completed before you attempt to FTP this file to some other place.
For this purpose you can monitor file size. For example you can check the size every 10 seconds and if it is the same start the download/upload, if not wait another 10 seconds and check again (looping until the size gets stable)

FTPFileGetSize could be your answer to this problem.

: That is just the problem. We do not want to ask
: the clients (or better, our client does not want this to ask their clients)
: "This" is the use of signature files. TO us the files size is
: unknown.

: Supplier A is uploading files to server B (FTP). We have to make sure that
: the files are correctly transferred to server C (W2K)

: We have been thinking of openening the file for write. If a trappable error
: occurs we maty consider the file being in upload proccess.

: Any other suggestion or is the signature file really the only way to be sure
: the file will be correctly transfered.

: What will happen if the script will start transferring the file (from b to C)
: while the upload
: proccess (from A to B) is running. I mean that we start the transfert while
: our client is uploading the file

Tue Jan 14, 2003 1:35 pm View user's profile Send private message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post Re: FTP Transfert open file Reply with quote

I understand what you mean but having probably
soon nearly 800 directories to verify wich several
files per directory ... waiting for each file at least
10 seconds to see if the file size changes ... all that
will take a long time.
What will happen if I try to transfer a file while it is being in progress of uploading

: If I understood you correctly you want to make sure that the file processing
: has completed before you attempt to FTP this file to some other place.
: For this purpose you can monitor file size. For example you can check the
: size every 10 seconds and if it is the same start the download/upload, if
: not wait another 10 seconds and check again (looping until the size gets
: stable)

: FTPFileGetSize could be your answer to this problem.

Wed Jan 15, 2003 4:18 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.