ftp shell扫描目录上传脚本
来源:互联网 发布:党规党纪面前知敬畏 编辑:程序博客网 时间:2024/06/05 14:36
#!/bin/sh
upload(){
ftp -n<<EOF
open 192.168.0.51
user gong 123456
binary
hash
lcd $1
prompt
mput *
close
EOF
}
# ......
foreachd(){
# ....1
for file in $1/*
do
# ......................
if [ -d $file ]
then
echo $file
upload $file
foreachd $file
#elif [ -f $file ]
#then
#echo $file
#foreachd $file
fi
done
}
# .........................
if [ $# != 0 ]
then
foreachd "$1"
else
foreachd "."
fi
upload(){
ftp -n<<EOF
open 192.168.0.51
user gong 123456
binary
hash
lcd $1
prompt
mput *
close
EOF
}
# ......
foreachd(){
# ....1
for file in $1/*
do
# ......................
if [ -d $file ]
then
echo $file
upload $file
foreachd $file
#elif [ -f $file ]
#then
#echo $file
#foreachd $file
fi
done
}
# .........................
if [ $# != 0 ]
then
foreachd "$1"
else
foreachd "."
fi
- ftp shell扫描目录上传脚本
- linux shell ftp脚本自动上传脚本
- shell 脚本FTP自动上传文件
- 简单SHELL脚本实现FTP上传文件
- 【shell脚本】ftp自动上传mysql备份文件
- 自动上传FTP服务器的shell脚本
- shell脚本ftp自动上传文件验证成功与否
- shell脚本中使用ftp进行文件的上传
- shell脚本实现查询数据库上传到ftp
- shell脚本实现上传日志到ftp服务器
- Linux使用Shell脚本实现ftp自动上传
- shell的FTP脚本
- 【SHELL】1 FTP脚本
- ftp shell 脚本上传下载
- shell ftp上传文件
- 自动FTP上传脚本
- ftp 使用脚本上传
- FTP上传文件脚本
- ASCII码对照表
- JAVA虚拟机工作原理
- iPhone-NSAssert使用
- 在tomcat中配置web应用程序
- 腾讯面试:Linux下如何扫描目录
- ftp shell扫描目录上传脚本
- Java程序员的成长过程
- 关于消息提示框中换行的问题
- PHP模拟POST提交的2种方法 curl,fsockopen,HttpClient
- 字符串操作(一)
- Linux下PHP开发环境搭建-php,mysql,apache
- android学习笔记转--------------junit.framework.AssertionFailedError: No tests found in错误解决办法
- 马拦过河卒(NOIP2002)
- vc 下编写的 Windows窗口小程序 计算机