That is the return code of test.bat. You need to debug test.bat.
-----Original Message-----
From: Zachary B. Wheeler [mailto:zwhee...@sddmtech.com]
Sent: Friday, February 13, 2009 2:44 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] PSTools - help
My objective with this is to copy a file to the remote machine in the
Nant_S_T_bat directory and then execute the bat file.
This is what I get:
[exec] Connecting to 132.1.10.11
[exec] Starting PSExec service on 132.1.10.11
[exec] Copying c:\zdownloads\test.bat to 132.1.10.11
[exec] Starting c:\zdownloads\test.bat on 132.1.10.11
[exec] test.bat exited on 132.1.10.11 with error code 1.
Build failed 18 warnings, 0 non fatal errors
C:\zdownloads\nant\nanttest\nanttest\psexec.build(11,6):
External Program Failed: c:\pstools\psexec (return code was 1)
Is anyone familiar with this error? Do I have to have psexec installed on
the remote computer as well?
?xml version="1.0" encoding="utf-8" ?>
<project name="NAntTest" default="test"
xmlns="http://nant.sf.net/release/0.85/nant.xsd">
<property name="server" value="132.1.10.11" />
<property name="username" value="dev" />
<property name="password" value="Test09" />
<target name="test" >
<exec program="psexec" basedir="c:\pstools" workingdir="." >
<arg line="\\${server}"/>
<arg line="-u ${username}"/>
<arg line="-p ${password}"/>
<arg line="-c c:\zdownloads\test.bat" />
<arg line="-w x:\Nant_S_T_Bat" />
</exec>
</target>
</project>
Zachary B. Wheeler
Principal
www.sddmtech.com
"We Listen To Our Customers"
Contact: 202.528.8969
Toll Free: 866.830.4147
Fax: 202.478.2886
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users