shell--ftp获取

 #!/bin/sh
rm -rf wmmpt.so
ftp -ivn  10.137.73.39 <<EOF
user otszhp otszhp
lcd /home/otszhp
cd /home/otszhp/OTS/bin
bin
get  wmmpt.so
bye
EOF
oinit -n wmmpt
cp wmmpt/main.cfg ../runtime/wmmpt/config/
cp wmmpt/Terminal.res ../runtime/wmmpt/config/res

你可能感兴趣的:(shell--ftp获取)