使用lftp与sftp获取远端文件脚本

因为工作的原因,需要每日使用sftp获取远程主机上的文件,所以就在想能不能脚本化,这样就不用天天定时定点的在服务器前面守着了。

lftp是linux下面的一个ftp客户端工具,使用起来非常方便,它的参数如下:

[zhou@localhost ~]$ lftp -h
Usage: lftp [OPTS] <site>
`lftp' is the first command executed by lftp after rc files
 -f <file>           execute commands from the file and exit
 -c <cmd>            execute the commands and exit
 --help              print this help and exit
 --version           print lftp version and exit
Other options are the same as in `open' command
 -e <cmd>            execute the command just after selecting
 -u <user>[,<pass>]  use the user/password for authentication
 -p <port>           use the port for connection
 <site>              host name, URL or bookmark name

继续阅读使用lftp与sftp获取远端文件脚本

WingIDE的特别烹制办法(☆_☆)/~~

WingIDE是Python程序语言设计的集成开发环境,具有语法标签高亮显示,命令自动完成,函数跳转列表等非常强大的功能。

一、下载WingIDE

从官方网站下载最新版本,传送门这里,目前最新版本是5.1.12-1。

二、安装WingIDE

按照正常流程安装即可,没有什么需要注意的地方。

注意:WingIDE不内建python,所以需要在安装WingIDE之前先安装python,windows下面推荐安装activePython
继续阅读WingIDE的特别烹制办法(☆_☆)/~~