- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: file transfer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 02:27 PM
тАО08-13-2001 02:27 PM
file transfer
We do lots of file transfer with rcp using script. Is there anyway I make sure that the file from source is entirely copied to the destination before I issue another command ??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 03:38 PM
тАО08-13-2001 03:38 PM
Re: file transfer
A file is completely copied when the copy process terminates. That does *not* mean that the copy didn't terminate prematurely, perhaps for a network layer error (loss of connection, etc.) or perhaps because the destination filesystem was full.
Perhaps the best way to verify that the file at the source and the file at the destination *are* in fact, exact copies is to 'cksum' the file at both points. If the checksums are equal, then the copy was successful.
See "man cksum".
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 03:42 PM
тАО08-13-2001 03:42 PM
Re: file transfer
ftp -v maia << endl>> /somedirpath/ftp.log
It works very well for additional scripts to check for success.
I'm new to unix but maybe this will help.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2001 11:39 PM
тАО08-13-2001 11:39 PM
Re: file transfer
if you check ten exit code of rcp, you should be quite sure, the transfer completed and the files are identical.
rcp from to
|| { echo >2 "rcp failed"; exit 1; }
Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2001 03:49 AM
тАО08-14-2001 03:49 AM
Re: file transfer
Once the file has been transfered completely the program will terminate by itself. sometimes it may terminate due to network/ link problems,in this case to confirm the complete transfer look at the size of the file on both the machine or u can use 'cksum' command on both machines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2001 12:34 PM
тАО08-17-2001 12:34 PM
Re: file transfer
you could create a checksum before doing the transfer
on the original station, then re-calculate it on the
destination station, and then compare the results.
"md5sum" comes to mind (Open Source, simple, fast,
proven)...
HTH,
Wodisch