参与的项目正好用了staf,用到以下几个功能
1. 服务器和客户端之间传文件, 及增删文件、目录
STAF serverip FS COPY Directory clientd TODIRECTORY serverd TOMACHINE clientip RECURSE KEEPEMPTYDIRECTORIES
STAF serverip FS COPY File clientd TODIRECTORY serverd TOMACHINE clientip
staf serverip fs delete entry c:/tem.zip confirm
2. 监控功能
staf serverip Monitor LOG MESSAGE "message" "currentrun"
3. 运行 dos命令
STAF local PROCESS START SHELL COMMAND "java -version"
4 .定时功能
staf 12.11.10.1 cron register machine local service process request "start shell command \"wscript.exe \\\"D:\\Program Files\\temp\\cron.vbs\\\"\"" description " runname&" minute 54 hour 16 day 13 month 3 once
1. 服务器和客户端之间传文件, 及增删文件、目录
STAF serverip FS COPY Directory clientd TODIRECTORY serverd TOMACHINE clientip RECURSE KEEPEMPTYDIRECTORIES
STAF serverip FS COPY File clientd TODIRECTORY serverd TOMACHINE clientip
staf serverip fs delete entry c:/tem.zip confirm
2. 监控功能
staf serverip Monitor LOG MESSAGE "message" "currentrun"
3. 运行 dos命令
STAF local PROCESS START SHELL COMMAND "java -version"
4 .定时功能
staf 12.11.10.1 cron register machine local service process request "start shell command \"wscript.exe \\\"D:\\Program Files\\temp\\cron.vbs\\\"\"" description " runname&" minute 54 hour 16 day 13 month 3 once
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/