You've discovered a bug in the documentation and HELP for the PROCESS 
service's START request.  I'll update the syntax for the PROCESS service's 
START request in the HELP and in the STAF User's Guide to properly reflect 
that you can specify multiple ENV options (and multiple VAR options) by 
adding "..." after the ENV and VAR options (which indicates that you can 
specify the option 0 or more times.  That is, I'll change:

  [VAR <Variable>=<Value>] [ENV <Variable>=<Value>] 
to:
  [VAR <Variable>=<Value>]... [ENV <Variable>=<Value>]...

So that the HELP request for the PROCESS service will show:

START [SHELL [<Shell>]] COMMAND <Command> [PARMS <Parms>] [WORKDIR 
<Directory>]
      [VAR <Variable>=<Value>]... [ENV <Variable>=<Value>]... 
[USEPROCESSVARS]
      [WORKLOAD <Name>] [TITLE <Title>] [WAIT [Timeout] | ASYNC]
      [STOPUSING <Method>] [STATICHANDLENAME <Name>]
      [NEWCONSOLE | SAMECONSOLE] [FOCUS <Background | Foreground | 
Minimized>]
      [USERNAME <User Name> [PASSWORD <Password>]]
      [DISABLEDAUTHISERROR | IGNOREDISABLEDAUTH]
      [STDIN <File>] [STDOUT <File> | STDOUTAPPEND <File>]
      [STDERR <File> | STDERRAPPEND <File> | STDERRTOSTDOUT]
      [RETURNSTDOUT] [RETURNSTDERR] [RETURNFILE <File>]...
      [NOTIFY ONEND [HANDLE <Handle> | NAME <Name>]
      [MACHINE <Machine>] [PRIORITY <Priority>] [KEY <Key>]]

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




"Ahmed Mostafa" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
08/06/2008 07:32 AM

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

Subject
[staf-users] Multiple Env option






How can I specify multiple variables for the Env option of the PROCESS 
Start command?
e.g. I want to set both PATH and HOME variables when running a process, 
how should this be written in STAF?
-- 
Ahmed Mostafa
Software Specialist
IBM Egypt, Cairo Technology Development Center 
0123919750
[EMAIL PROTECTED]
-------------------------------------------------------------------------
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