ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: Psexec and ant
Date Wed, 09 Jun 2010 16:34:21 GMT
Daniel Blaukopf schrieb am 09.06.2010 um 18:56 (+0300):
> Since psexec.exe expects to be run from a command shell, you might get
> better results running "cmd /c psexec.exe \\172..." from Ant.

But it's not always required to include cmd.exe. This works fine:

          \,,,/
          (o o)
------oOOo-(_)-oOOo------
<project default="netstat">

  <target name="netstat">
    <exec executable="netstat.exe">
      <arg value="/ano" />
      <arg value="/p" />
      <arg value="tcp" />
    </exec>
  </target>

  <target name="ipconfig">
    <exec executable="ipconfig.exe">
      <arg value="/all" />
    </exec>
  </target>

</project>

-- 
Michael Ludwig

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


Mime
View raw message