ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Blaukopf <Daniel.Blauk...@Sun.COM>
Subject Re: Psexec and ant
Date Wed, 09 Jun 2010 15:56:54 GMT
Hi Limor,

Since psexec.exe expects to be run from a command shell, you might get
better results running "cmd /c psexec.exe \\172..." from Ant.
For more information you will have to send details of what you expected
to see and what you did see when running Ant.

Daniel


On Wed, 2010-06-09 at 08:04 -0700, Limor wrote: 
> 
> 
> Michael Ludwig-6 wrote:
> > 
> > [Psexec and ant]
> > Limor schrieb am 09.06.2010 um 02:07 (-0700):
> >> 
> >> Hello
> >> I'm trying to use Psexec by using ant with no success... 
> >> 
> >> ant task:
> >> <target name="myName" dir="." output="myOutput">  
> >>     <exec executable="psexec.exe" dir="${build.files}" >
> >>             <arg value="\\172.16.191.2"/>
> >>             <arg value="-u" />
> >>             <arg value="myUser" />
> >>             <arg value="-p" />
> >>             <arg value="myPass" />
> >>             <arg value="-c" />            
> >>             <arg value="runme2.bat" />    
> >>             <arg value="myValue" />      
> >>     </exec>  
> >> </target>
> >> 
> >> output is:
> > 
> > The output I snipped doesn't look like Ant output. Did you run Ant at
> > all? If so, you should have seen syntax errors for including "dir" and
> > "output" attributes in your <target>, which don't belong there.
> > 
> > See Ant manual: "Concepts and Types" > "Targets and Extension-Points"
> > 
> > -- 
> > Michael Ludwig
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> Hi
> and thanks for the quick response
> This is not an ant error this is win or psexec error,however I get this erro
> only wen I'am tring to run the batch form ant
> Thanks 
> Limor



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


Mime
View raw message