When you put double quotes within double quotes you must escape the inner 
double quotes using a backslash as the escape character.  This is talked 
about in section "7.2 Option Value Formats" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDROVFORM.

For example:

C:\>STAF local PROCESS START SHELL COMMAND "\"C:\Program 
Files\Java\jdk1.6.0_13\bin\java.exe\" -version" WAIT STDERRTOSTDOUT 
RETURNSTDOUT
Response
--------
{
  Return Code: 0
  Key        : <None>
  Files      : [
    {
      Return Code: 0
      Data       : java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

    }
  ]
}

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




Fang Fang Chen <ffc...@cn.ibm.com> 
07/08/2010 04:58 AM

To
staf-users-ow...@lists.sourceforge.net
cc

Subject
issue about PROCESS command







Hi staf-users-owner, 

When I tried to run command at a remote machine with staf, I came across 
the following issue: 

I have add double quotation marks besides the path: 
C:\Program Files\IBM\eDiscoveryAnalyzer\Uninstall_IBM InfoSphere 
eDiscovery Analyzer\Uninstall IBM InfoSphere eDiscovery Analyzer.exe 

the command run well at the remote machine: 


I am not sure about how the path should be expressed at the staf command. 
Please help me to check the problem and I look forward to hearing from you 
soon. 

Thanks. 
Best Regards,
FangFang,Chen (陈芳芳)
----------------------------------------------------------------------------
eDM/eDA SVT , IBM China Software Development Lab 
Email: ffc...@cn.ibm.com
Tel: (86-10)82454140
Address: Building No.28, ZhongGuanCun Software Park, No.8 Dong Bei Wang 
West Road, Haidian District, Beijing 100193, P.R. China
---------------------------------------------------------------------------- 


<<image/gif>>

<<image/gif>>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to