No, setting STAF variables will never cause any environment variables to
be created/set on the machine where you are running STAF. STAF "System"
variables are common to all the processes on a given STAF machine. If you
are running a script via a STAF PROCESS START request, then you can use
the ENV option to set any number of environment variables for the process.
Here are some examples:
# STAF local VAR SET SYSTEM VAR KUKU=true
Response
--------
# STAF local VAR RESOLVE STRING {KUKU}
Response
--------
true
# STAF local PROCESS START SHELL COMMAND "echo \$KUKU" RETURNSTDOUT
STDERRTOSTDOUT WAIT
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data :
}
]
}
Notice that in the above request, "KUKU" is not set as an environment
variable. You can use the ENV option to set KUKU as an environment
variable for the command (or ksh script) that you are running:
# STAF local PROCESS START SHELL COMMAND "echo \$KUKU" RETURNSTDOUT
STDERRTOSTDOUT WAIT ENV "KUKU={KUKU}"
Response
--------
{
Return Code: 0
Key : <None>
Files : [
{
Return Code: 0
Data : true
}
]
}
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
"Shuki Zaitman" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/22/2008 01:59 AM
To
<[email protected]>
cc
Subject
[staf-users] Variable (VAR) Service question
Hello -
Hi try to use that service & it’s that I miss something.
Ad I’m understood , set var (like var system set var KUKU=true) will set
the environment variable that call KUKU or not?
For example:
I set variable KUKU=true On STAF Instance HOST1 . After that I perform ksh
script over HOST1 and $KUKU is undefined…
I knew I have option to run get per each variable to get that value. My
question is if that is the STAF process or there is other short solution?
Regards,
Shuki
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users