Article ID: 96269 - View products that this article applies to.
This article was previously published under Q96269
FTP (file transfer protocol) is a file transfer utility commonly used with UNIX systems.
FTP is capable of using scripts (lists of commands from external files). The following example demonstrates a script that opens a connection to IP address 18.104.22.168, logs on to the host as a guest with the password "guest," uploads the File1 file, and then quits:
You must use the -s option for FTP to read this file under Windows. If the previous script was in a file called Test.scr, you can start the script by typing:
ftp -s:test.scrYou can specify the host name in the command line and then use the script to process the login. For example, if you use the following command line
ftp -s:test.scr 22.214.171.124the script file should read as follows:
userHowever, if the FTP host implements automatic login, this command will not work. To turn off automatic login, use the -n switch in the command line as follows:
ftp -n -s:test.scr 126.96.36.199
Article ID: 96269 - Last Review: September 11, 2011 - Revision: 5.0