Make sure the file transfer is suscess


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Make sure the file transfer is suscess
# 1  
Old 11-27-2007
Make sure the file transfer is suscess

I hv two servers ( server A and server B , server B is windows ) and have a script to run to ftp files (may be more than one file) from server A to server B in every 15 minutes , I would like to make sure the files are transferred successfully to other server , can advise what is the best way to check the files are successfully transferred or not ? if not successful , then send me a notifiy mail , can anyone provide the script or give a suggestion for it ?

ps. the windows server do NOT have ssh rsh server installed .

Thx in advance.
# 2  
Old 11-27-2007
After you have done the ftp, run another ftp session to get the file lengths using "dir" and then compare the with what they should be.
# 3  
Old 12-11-2007
Quote:
Originally Posted by porter
After you have done the ftp, run another ftp session to get the file lengths using "dir" and then compare the with what they should be.
thx reply,

but how the "another ftp session" know the ftp process is complete ( as the ftp is frenquently run ) , if I want the files ftp to server B then ftp back to server A ( another path ) , then compare these two paths , can advise how to write the script ? thx
# 4  
Old 12-11-2007
Quote:
Originally Posted by ust
but how the "another ftp session" know the ftp process is complete
Due to "sequential programming", most programming and scripting languages execute the statements in the order they are written, in pseudo code....

get file length of file to send

ftp file to server with put

get file length from server using ftp dir

compare with expected length
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File transfer

When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?. Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies

2. Shell Programming and Scripting

How to make script for file transfer?

Hi All, Please suggest me how to make script for file transfer from server X to another server Y. I have some directory path in server X as below: /home/directory_1/ . . /home/directory_n/ where some text files are available in each directory where some files records zero and some files... (6 Replies)
Discussion started by: aaditya321
6 Replies

3. Shell Programming and Scripting

Avoiding file overwrite during file transfer using scp

Hi, I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies

4. Programming

File transfer in C

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies

5. Programming

makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file So, if I run make with specified file:make -f target.mak is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies

6. Shell Programming and Scripting

File transfer

Hi All, it might not be an sound question, i have two server like A and B.. i want to transfer file from B to A ..here i have some questions.. 1) do we need to create private and public key to connect..and transferring files...from B to A..? 2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies

7. IP Networking

XFB file transfer

Hi Can some one tell me what is XFB and what are the general steps involved in setting XFB file transfer in a sun solaris server (0 Replies)
Discussion started by: sais
0 Replies

8. UNIX for Dummies Questions & Answers

crashed HD file transfer

I created a bootable CD from Slax and can now access my crashed HD files. Problem is I can't move them to my USB HD even though the device is recognized. From what I have learned, I must "mount" the old HD and the good USB drive and then enter a copy command to permit the transfer (many GB's). ... (3 Replies)
Discussion started by: craigt
3 Replies

9. UNIX for Dummies Questions & Answers

Transfer the file

Dear all, Can anybody let me know how to automate a file transfer process to a remote m/c thru SFTP , automate means it will not prmpt for password. how i am going to achive this....and what all methods are available or tools are available ???? (2 Replies)
Discussion started by: manas_ranjan
2 Replies

10. Shell Programming and Scripting

file transfer

hi all how do i copy a file from one server to another thanks bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies
Login or Register to Ask a Question