It depends on exactly what you are trying to do. You can certainly use
VAR SET to remotely set variables (maybe you can point me to the STAF
documentation where that is not clear).
For example, I can set some variables on a remote system:
$ STAF remotemachine.company.com VAR SET VAR first=1st VAR second=2nd VAR
third=3rd
Response
--------
And then run some STAF requests to the remote machine which reference
those variables:
$ STAF remotemachine.company.com PROCESS START SHELL COMMAND "echo {first}
{second} {third}" RETURNSTDOUT STDERRTOSTDOUT WAIT
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : 1st 2nd 3rd
}
]
}
$ STAF remotemachine.company.com PROCESS START SHELL COMMAND "echo {first}
{second} {third}" RETURNSTDOUT STDERRTOSTDOUT WAIT
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : 1st 2nd 3rd
}
]
}
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
"Ahmed Mostafa" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05/07/2008 01:39 AM
To
STAF <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Share variables across commands
Hello,
I want to share some variables across some successive staf commands on a
remote machine, do I have to register a static handle? (it is stated that
the VAR Set command is not available for remote machine!). So how can I do
this?
Thanks
--
Ahmed Mostafa
0123919750
[EMAIL PROTECTED]
Software Developer
IBM Egypt, Cairo Technology Development Center
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users