to run ftp without interface is needed two files.
[** This is for unix series os.]
1) batch ftp command file
2) script to call batch file( #1)
ftp.cmd # command file
ftp.sh # shell file.
## command file ####
# let's assume userid : aaa password : bbb
# remote directory : cccc
# local directory : dddd
# this command list can get multiple files.
open 111.111.111.111
user aaa bbb
lcd dddd
cd cccc
hash
bell
mget *
## shell file.
ftp -i -n < ftp.cmd
댓글 없음:
댓글 쓰기