ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coonay <coo...@yahoo.com>
Subject Re: AW: core Task 'exec' start Invalid switch - /B
Date Fri, 08 May 2009 09:47:28 GMT

i don't want start to create a new widnows,so i use the /B switch

coonay wrote:
> 
> without "/B" swith,start will create a new window ,
> 
> 
> 
> Jan.Materne wrote:
>> 
>> Is "start" really an executable? Maybe it is only a shell command. Then
>> you have to execute the shell itself (cmd.exe, sh, ...).
>> 
>> Redirecting the output in Ant is not done via shell options (1>, 2>, >&1,
>> ...). You have to use nested <redirector>s.
>> 
>> 
>> Jan
>> 
>>>-----Urspr√ľngliche Nachricht-----
>>>Von: coonay [mailto:coonay@yahoo.com] 
>>>Gesendet: Freitag, 8. Mai 2009 07:41
>>>An: user@ant.apache.org
>>>Betreff: core Task 'exec' start Invalid switch - /B
>>>
>>>
>>><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-switc
>>>h----B-tp23440429p23440429.html
>>>Sent from the Ant - Users mailing list archive at Nabble.com.
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
>> 
>> 
> 
> 


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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message