Yes, you could use the STAF QUEUE service's QUEUE request (e.g. via a 
<stafcmd> element in a STAX job) to send "commands" to a program (e.g. 
that you write in Java, Python, Perl, C/C++, or Tcl).  This program would 
create a STAF handle and read the commands from its queue (via a QUEUE GET 
WAIT request).  You can invoke this program via a <process> element in 
your STAX job. 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




"Devvan Stokes" <[EMAIL PROTECTED]> 
10/24/2008 02:25 PM

To
<staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] keeping a handle to a prevously invoked process






Hello,

I am looking for a robust way of using a STAX script to invoke a process 
on a remote machine, maintain a "handle" of some sort to that process 
(which I'd like to continue running in the background), and then later 
have other process elements send commands to that process, returning the 
output.

Specifically, I want to use STAX to connect to a remote database.  On that 
remote machine, other pieces of software modify the db contents. Via the 
database connection that I just opened, I want to query for a particular 
state, returning the output of those queries to be handled by STAX logic. 
When a certain state has been reached, I want to break out of the loop and 
end my database connection.

Is there a way to "resume" sending commands to some previously-started 
process?

Thank you. 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to