ftp自动下载shell脚本
来源:互联网 发布:二叉树深度递归算法 编辑:程序博客网 时间:2024/05/02 05:15
antoftp.sh
写成带4参数的脚本 ,内容如下:
#!/bin/sh
ftp -v -n $1 <<EOF
user root root
binary
hash
cd $2
lcd $3
prompt
mget $4
close
bye
EOF
echo "files download ok!!!"
i=1
while [ $i -le 100 ]
do
echo test > /dev/ttyS5
i=$(( $i + 1 ))
done
执行方式如下:./autoftp hostname localdir remotedir filename
0 0
- ftp自动下载shell脚本
- shell脚本,自动登陆ftp,下载文件
- 自动下载shell脚本
- shell下自动ftp脚本
- shell下自动ftp脚本
- shell-ftp交互下载脚本
- linux shell ftp脚本自动上传脚本
- linux中使用shell脚本自动登录ftp服务器下载上传文件。
- linux shell 脚本自动从配置远程ftp服务上下载更新文件
- shell 脚本FTP自动上传文件
- shell脚本实现ftp自动备份
- shell脚本自动登录FTP实现上传下载
- shell脚本:自动FTP和TELNET
- 【shell脚本】ftp自动上传mysql备份文件
- 自动上传FTP服务器的shell脚本
- shell脚本 自动搭建ftp服务
- 一个ftp下载的shell脚本
- windows下自动ftp脚本下载
- History API
- db2与oracle、mysql使用区别
- 蓝桥杯 国王的烦恼
- HDU 1203 I NEED A OFFER!
- protobuf开发指南
- ftp自动下载shell脚本
- AndroidStudio查看方法具体实现(Open Implementation)
- 用SQL Server默认跟踪查看近期数据库对象的DDL改动
- sizeof与strlen的用法与区别
- C++ 析构函数 为何一般定义为虚函数
- Jquery的问题(一)
- GestureDetector的使用
- JavaScript 垃圾回收
- TCP/IP——TCP滑动窗口协议