Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 06-17-2003, 01:00 PM   #1 (permalink)
Insane
 
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?
rundmv is offline  
Old 06-17-2003, 01:13 PM   #2 (permalink)
Tilted
 
Will this help?
J-Dubs is offline  
Old 06-17-2003, 01:55 PM   #3 (permalink)
Insane
 
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.
rundmv is offline  
Old 06-17-2003, 08:18 PM   #4 (permalink)
Insane
 
LewisCouch's Avatar
 
Location: Pacific NW
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.
__________________
"The gift of liberty is like that of a horse, handsome, strong, and high-spirited. In some it arouses a wish to ride; in many others, on the contrary, it increases the desire to walk."

-- Massimo d'Azeglio
LewisCouch is offline  
Old 06-18-2003, 03:05 AM   #5 (permalink)
Tilted
 
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 is offline  
Old 06-18-2003, 03:05 AM   #6 (permalink)
Tilted
 
oops. accidentally resubmitted.

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


Last edited by whale; 06-18-2003 at 03:08 AM..
whale is offline  
 

Tags
ftp, script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 10:34 AM.

Tilted Forum Project

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

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