STAF 在项目中的应用

发表于:2009-09-25来源:作者:点击数: 标签:项目应用STAF
参与的项目正好用了staf,用到以下几个功能 1. 服务器 和客户端之间传文件,及增删文件、目录 STAF serverip FS COPY Directory clientd TODIRECTORY serverd TOMACHINE clientip RECURSE KEEPEMPTYDIRECTORIES STAF serverip FS COPY File clientd TODIRECTO
参与的项目正好用了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

原文转自:http://www.ltesting.net