레이블이 batch인 게시물을 표시합니다. 모든 게시물 표시
레이블이 batch인 게시물을 표시합니다. 모든 게시물 표시

2013. 8. 28.

Ftp batch script without interface

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

Enhanced by Zemanta

2013. 6. 27.

Running multiple batch command at the same time by dos command.

Each batch file runs without waiting for ending previous batch commands.

(sample1)
Multi_run.bat

   start cmd.exe /C  bat_comm1.bat 
   start cmd.exe /C  bat_comm2.bat 
   start cmd.exe /C  bat_comm3.bat