You can place the <process> element within a <timer> element and specify the duration. For example:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "stax.dtd"> <stax> <defaultcall function="test"/> <function name="test"> <sequence> <timer duration="'10s'"> <process> <location>'local'</location> <command>'notepad'</command> </process> </timer> </sequence> </function> </stax> In this example, the process will be terminated after 10 seconds. Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: arul prakash <arulprakas...@gmail.com> To: staf-users@lists.sourceforge.net Date: 04/09/2010 02:52 AM Subject: [staf-users] Setting timeout for a process Hi all, How to set time out for a running process in STAX(maximum duration a process should run).I found that WAIT can be used,but I can't find the WAIT tag in STAX DTD. -- Regards, Arul ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users