The STAF PROCESS service provides a FOCUS option that works if the process
is run on a Windows system (not on Unix systems). You can assign it the
"Foreground" option to indicate to display a window in the foreground
(give it focus). This option is described in section "" in the STAF
User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV
as follows:
FOCUS specifies the focus that is to be given to new windows opened when
starting a process on a Windows system. The window(s) it effects depends
on whether you are using the default command mode or the shell command
mode. If the process is started using the default command mode (no SHELL
option), then the specified focus specified is given to any new windows
opened by the specified command. Otherwise, if the process is started
using the shell command mode, then the specified focus is given only to
the new shell command window opened, not to any windows opened by the
specified command. This option only has effect on Windows systems. This
option will resolve variables using the IGNOREERRORS option. This option
was added in STAF V3.1.4. Recognized values are the following:
Background: This indicates to display a window in the background (not give
it focus) in its most recent size and position. This is the default mode.
Foreground: This indicates to display a window in the foreground (give it
focus) in its most recent size and position.
Minimized: This indicates to display a window as minimized.
In a STAX job using a <process> element, you can specify the <focus>
sub-element. See section "process: Run a Process" in the STAX User's
Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_Process for
more information. For example:
<process>
<location>machine</location>
<command>cmd</command>
<stderr mode="'stdout'"/>
<returnstdout/>
<focus mode="'foreground'"/>
</process>
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Luca Robusto <lucarobu...@gmail.com>
To: staf-users@lists.sourceforge.net,
Date: 10/04/2013 12:57 PM
Subject: [staf-users] Show the process execution on destination
machine
Hi all,
I have a Windows 2008 R2 Server Monitor machine on which Stax in running
and Staf is not a service process but executed manually.
All target machines runs Staf as a service and they are CentOS 6.4 and
Win2008R2 Server.
Is it possible to make staf requests from Monitor Machine so that the
process on Target ones executes on display and not in the Staf internal
GUI?
I need to display on target machines all that is happening(e.g. open
notepad, or launch a benchmarking tool to be showed)
Regards.
Luca.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users