When you say you want to do something (e.g. a snapshot of the desktop) 
right before a process times out, do you mean right before the process has 
been terminated by the timer element due to the time out?  If so, I 
suppose you could run another timer element in parallel with the process 
with a slightly shorter timer duration and then when that timer times out 
you could do whatever you wanted (e.g. take a snapshot of the desktop).

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Cindy Zhu <c...@fekete.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
Date:   03/15/2011 11:50 AM
Subject:        [staf-users] Take a snapshot right before time out



Hi,
 
Is it possible to take a snapshot of the desktop right before time out in 
the following stax job?
 
 
<function name="RunSilkTest" scope="local">
                <function-prolog>Starts Silk run.</function-prolog>
                <function-list-args>
                                <function-required-arg name='machine'>The 
client name.</function-required-arg>
                </function-list-args>
 
                <sequence>
                <script>
                cmdline='runtime -proj D:/Silk/Apps/' + PRODUCT + '/' + 
PRODUCT + '.vtp -opt D:/Silk/Apps/' + PRODUCT + '/' + PRODUCT + '.opt 
-query MainBuild -q -r D:/Silk/Apps/' + PRODUCT + '/' + PRODUCT + '.pln'
                </script>
                                <timer duration='silk_timeout'>
                                <process>
 <location>machine</location>
                                                <command 
mode="'shell'">cmdline</command>
                                                <stderr mode="'stdout'"/>
                                                <returnstdout/>
                                </process>
                                </timer>
                                <if expr="RC==1">
                                                <message log="1">'Time 
out'</message>
                                <elseif expr="RC==0">
                                                <message log="1">'Silk run 
ended before time out on %s ' % testclient</message> 
                                </elseif>
                                </if>
                </sequence>
</function>
 
Thank you very much.
 
Cindy
 
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to