FTP (file transfer protocol) is a file transfer utility commonly used with Unix systems.
FTP can use scripts (command list from external files ). The following example demonstrates a script that opens a connection with the IP address 11.11.11.11, logs on to the host using the password "guest" as the guest, uploads the file1 file, and then exits:
Open 11.11.11.11
User
Guest
Guest
Put file1
QuitYou must use
-SOption, FTP can read the file in windows. If the previous script is in a file named test. scr, you can start it by typing the following:
FTP-S: Test. scrYou can specify the host name in the command line and use the script to log on. For example, if you use the following command line:
FTP-S: Test. scr 11.11.11.11The script file should be as follows:
User
Guest
GuestPut file1QuitHowever, if the FTP host performs automatic logon, this command will not run. To disable automatic logon, use-NSwitch:
FTP-n-s: Test. scr 11.11.11.11