4.??????

??????? STAF(STAX) ??????????????????????????У??????????????Щ?????????????Щ???????????????????Щ???????????????????????Щ????????????????????

4.1 ??? STAFCMD ?? process ?????????? STAX ?? process ???
????д STAX ???????STAX ?????? process ??????????? STAF ?е????(process)??????????ù????У????? STAX ?? process ??????Щ????′????????????????????????????????? ???? 11 ?? STAX ?????????????????

???? 11??process ??????????

    <process>
      <location>'linuxServer' </location>
      <command>'ls'</command>
      <parms>'-l'</parms>
    </process>

???? 11 ???? Linux ??????? ls ??????????? ls ???? -l ????????? STAXMonitor ??д????????????????????????????? stafcmd ????????? STAF ????????? 12 ?????

???? 12???????????

    <stafcmd>
      <location>'linuxServer'</location>
      <service>'process'</service>
      <request>'start command "ls" parms "-l" wait '</request>
    </stafcmd>

4.2 ?? Windows ????????? STDOUT ????????

STAF ??? STDOUT ???????????????????????????>?????????? ls -l > ls.log?????? Windows ??????У??????????? STDOUT ??????Щ???? ??????????????????????????????????????а????Щ????????????? xcopy???? xcopy ???????????????Щ??????????????????????? STDOUT ???檔 ?? Linux ?????в????????????????????????????? Windows ??????????????????????????????>????????????

4.3 ??? STAXMonitor ??????????????

???? STAF ?? STAX ?????????????????? STAXMonitor ????? STAX ?????????????STAXMonitor ????????????????????????????????????н??????????е???????????е???? ??? STAXMonitor ?????????????????е???????з???????????????????????

STAXMonitor ?? STAX ???????У???????java -jar STAXMon.jar????? STAXMonitor??STAXMonitor ???????? 3 ?????

?3. STAXMonitor ???н???

STAXMonitor ???????????????е? STAX ????????????????????????????????????????????Monitored ????????????? STAXMonitor ????????? ????????????????? Start monitoring??????????? 4 ?????????檔