前几天看到一则需要从ftp上面实时下载最新文件的需求,做了一个小小的工具,设计不足繁多,bug众多,不过胜在勉强能用的及是自己最近几天的亲苦成果....望大家多多点评,指点
FTPJOB执行工具v1.0.0
使用说明:
1.设置
参数设置共有6个参数需要设置
2.参数说明
ftp服务器ip或者名称
ftp服务器登录用户名
ftp服务器登录密码
ftp转下的目录
JOB定时时间 设置详情请看注释1
本地存放路径
3.执行
启动JOB
系统会安装JOB定时时间到ftp服务器上下载最新文件
停止JOB
4.中间文本显示下载记录
5.JOB状态栏
/config/parameter.xml ==== 参数配置文件
/config/ftp转下的目录.log ==== ftp服务器对应路径对比文件名
/log/ftp转下的目录.log ==== ftp下载最近文件记录log
注释1:
Expression Meaning
"0 0 12 * * ?" Fire at 12pm (noon) every day
"0 15 10 ? * *" Fire at 10:15am every day
"0 15 10 * * ?" Fire at 10:15am every day
"0 15 10 * * ? *" Fire at 10:15am every day
"0 15 10 * * ? 2005" Fire at 10:15am every day during the year 2005
"0 * 14 * * ?" Fire every minute starting at 2pm and ending at 2:59pm,
every day
"0 0/5 14 * * ?" Fire every 5 minutes starting at 2pm and ending at
2:55pm, every day
"0 0/5 14,18 * * ?" Fire every 5 minutes starting at 2pm and ending at
2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55pm, every day
"0 0-5 14 * * ?" Fire every minute starting at 2pm and ending at
2:05pm, every day
"0 10,44 14 ? 3 WED" Fire at 2:10pm and at 2:44pm every Wednesday in the
month of March.
"0 15 10 ? * MON-FRI" Fire at 10:15am every Monday, Tuesday, Wednesday,
Thursday and Friday
"0 15 10 15 * ?" Fire at 10:15am on the 15th day of every month
"0 15 10 L * ?" Fire at 10:15am on the last day of every month
"0 15 10 ? * 6L" Fire at 10:15am on the last Friday of every month
"0 15 10 ? * 6L" Fire at 10:15am on the last Friday of every month
"0 15 10 ? * 6L 2002-2005" Fire at 10:15am on every last Friday of
every month during the years 2002, 2003, 2004 and 2005
"0 15 10 ? * 6#3" Fire at 10:15am on the third Friday of every month
下载地址:http://down.51cto.com/data/332555
FTPJOB执行工具v1.0.0
使用说明:
1.设置
参数设置共有6个参数需要设置
2.参数说明
ftp服务器ip或者名称
ftp服务器登录用户名
ftp服务器登录密码
ftp转下的目录
JOB定时时间 设置详情请看注释1
本地存放路径
3.执行
启动JOB
系统会安装JOB定时时间到ftp服务器上下载最新文件
停止JOB
4.中间文本显示下载记录
5.JOB状态栏
/config/parameter.xml ==== 参数配置文件
/config/ftp转下的目录.log ==== ftp服务器对应路径对比文件名
/log/ftp转下的目录.log ==== ftp下载最近文件记录log
注释1:
Expression Meaning
"0 0 12 * * ?" Fire at 12pm (noon) every day
"0 15 10 ? * *" Fire at 10:15am every day
"0 15 10 * * ?" Fire at 10:15am every day
"0 15 10 * * ? *" Fire at 10:15am every day
"0 15 10 * * ? 2005" Fire at 10:15am every day during the year 2005
"0 * 14 * * ?" Fire every minute starting at 2pm and ending at 2:59pm,
every day
"0 0/5 14 * * ?" Fire every 5 minutes starting at 2pm and ending at
2:55pm, every day
"0 0/5 14,18 * * ?" Fire every 5 minutes starting at 2pm and ending at
2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55pm, every day
"0 0-5 14 * * ?" Fire every minute starting at 2pm and ending at
2:05pm, every day
"0 10,44 14 ? 3 WED" Fire at 2:10pm and at 2:44pm every Wednesday in the
month of March.
"0 15 10 ? * MON-FRI" Fire at 10:15am every Monday, Tuesday, Wednesday,
Thursday and Friday
"0 15 10 15 * ?" Fire at 10:15am on the 15th day of every month
"0 15 10 L * ?" Fire at 10:15am on the last day of every month
"0 15 10 ? * 6L" Fire at 10:15am on the last Friday of every month
"0 15 10 ? * 6L" Fire at 10:15am on the last Friday of every month
"0 15 10 ? * 6L 2002-2005" Fire at 10:15am on every last Friday of
every month during the years 2002, 2003, 2004 and 2005
"0 15 10 ? * 6#3" Fire at 10:15am on the third Friday of every month
下载地址:http://down.51cto.com/data/332555
转载于:https://blog.51cto.com/yangbing/786662