<target name="exec">      
      <echo message="PSEXEC is running..."/>
          
          <exec executable="start">                
                <arg line="/WAIT /B"/>                  
                <arg value="psexec"/>
                <arg line=" \\${RHOST} -u ${USER} -p ${PASSWORD} ${CMD}
${ARG}"/>                       
          </exec>         
          
  
</target>

/B is a valid switch for start ,but there is error using ant exec task,why
is that ?


BTW ,I want to redictor the info to a file 
<arg line=" \\${RHOST} -u ${USER} -p ${PASSWORD} ${CMD} ${ARG} >rd.log
2>&1"/> 


the & is not permited there,how can i do that ?

 

-----
http://coonay2010expo.blogspot.com/ http:coonay 
-- 
View this message in context: 
http://www.nabble.com/core-Task-%27exec%27-start--Invalid-switch----B-tp23440429p23440429.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to