![]() |
FTP script help
I'm trying to write an FTP script to copy a file to an FTP server that I call with a MS-DOS batch file. I'm using "FTP -i -s:script.txt". Does anyone know where I can find a good reference for FTP script files, as well as a list of the command switches available for the FTP command?
|
|
I know how to create the file, and I know the basic commands to put in it, but was looking for a something to help me do things like: be able to know whether the file was successfully transmitted without having to read it on the screen, so that I could display it to the user and/or log it.
|
If you are attempting to ascertain whether or not the file was transferred in it's entirety you could run a CRC check prior to the transfer and then again right afterwards. Compare the two values, if they match, you've got a successful transfer. You may be able to find some freeware that works in batch mode. Here's a reference to CRC.
http://www.mindworkshop.com/alchemy/crc.html Good luck, there are many solutions to this problem. |
hi. use expect. should be what you need.
goto http://expect.nist.gov/ it's available in linux & win32. easy to learn. good luck. |
oops. accidentally resubmitted.
anyway, bump a reply if you need a sample expect ftp script. |
All times are GMT -8. The time now is 07:22 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project