FTP commands for batch files
来源:互联网 发布:淘宝助理无法联机打印 编辑:程序博客网 时间:2024/05/17 02:25
http://www.simplescripts.de/ftp-commands-batch-files.htm
FTP batch...
FTP commands for batch files
You can run FTP commands in a batch file with the command
ftp-s:filename
Create a .txt file with the FTP commands, one command per line.
open <hostname>
<FTP user>
<FTP password>
hash # display progress
bin # copy in binary mode (or asc for Ascii)
lcd <local folder> # change local directory
cd <remote folder> # change directory on FTP server
get <remote file> # copy file to local directory bye
Example file download_logfiles.txt:
open www.mydomain.com
john
moNkey77
hash
asc
lcd c:\temp
cd statistics/logs
get access_log
bye
Now you can start the download from the command line with the following command:
ftp -s:download_logfiles.txt
Check the FTP port in regular intervals
If you would like to check your FTP Server at regular intervals, you can use the command line utilitySLCheck. SLCheck connects to the FTP Server and checks the answer. Batch files can be executed in dependance of the result, e.g. to send alarm notifications. Try the following command:
SLCheck -p 21 -a ftp.domain.com -r "220 ProFTPD"
220 ProFTPD can be the normal answer from a FTP Server.
All results are logged in a logfile. You can monitor your FTP Server by running SLCheck as a scheduled task, e.g. once a minute.
SLCheck Homepage
- FTP commands for batch files
- Linux Commands for Beginners--Finding Files
- Batch Files
- ftp commands
- Linux Commands for Beginners-- FTP for Remote Administration
- Unlock files in batch
- List of FTP commands for the Microsoft command-line FTP client
- [转] Basic FTP Commands
- Common FTP Commands
- Basic FTP Commands
- Use vbs to batch run commands
- Android ADB Commands Using Batch File
- List of raw FTP commands
- List of raw FTP commands
- List of raw FTP commands
- List of FTP user commands
- DDL Commands for LOBs
- some commands for search
- Digester原理
- sql注入
- 资源文件的读取
- PHP和MySQL Web开发读书笔记一
- Linux 编程经典书籍推荐(2012年2月)
- FTP commands for batch files
- Java 5 中增强的for循环——for/in (for each)
- ZigBee:关于在win7(64bits)上安装IAR
- 比较文件和磁盘剩余空间大小
- 上下界的网络流
- scanf 格式化字符串详解
- 求职经验
- win32 word中加入图片后怎么移动位置?
- MaNGOS游戏服务器设计