前面写了一个Windows下自动FTP的脚本:
http://bladelogic.iteye.com/blog/1709463
今天新增Linux下的简单脚本,还待优化
#!/bin/sh
lftp 10.12.132.53 <<EOF
login user1 password1
cd subdir
put file1 file2 file3
exit
EOF
本文分享了在Linux环境下创建的FTP自动上传脚本,包括登录、切换目录及文件上传等基本操作,脚本有待进一步优化。
前面写了一个Windows下自动FTP的脚本:
今天新增Linux下的简单脚本,还待优化
#!/bin/sh
lftp 10.12.132.53 <<EOF
login user1 password1
cd subdir
put file1 file2 file3
exit
EOF

被折叠的 条评论
为什么被折叠?