Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   FTP script help (https://thetfp.com/tfp/tilted-technology/12281-ftp-script-help.html)

rundmv 06-17-2003 01:00 PM

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?

J-Dubs 06-17-2003 01:13 PM

Will this help?

rundmv 06-17-2003 01:55 PM

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.

LewisCouch 06-17-2003 08:18 PM

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.

whale 06-18-2003 03:05 AM

hi. use expect. should be what you need.

goto http://expect.nist.gov/

it's available in linux & win32. easy to learn.

good luck.

whale 06-18-2003 03:05 AM

oops. accidentally resubmitted.

anyway, bump a reply if you need a sample expect ftp script.



All times are GMT -8. The time now is 01:42 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52