You can create an FTP script using any valid commands that you would type at the FTP prompt.
If your manual FTP session was:
open 23.21.123.13
UserName
Password
put myfile
quit
you can script this by creating myscript.scr file that contains:
user UserName Password
put myfile
quit
and then typing:
FTP -s:myscript.scr 23.21.123.13
The only exception to this is if the FTP host has auto-login implemented. In this case, add a -n parameter:
FTP -n -s:myscript.scr 23.21.123.13
0 comments
Hide comments