ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: help with exec
Date Thu, 05 Jun 2003 17:13:45 GMT

Try using the .bat file as the executable rather than cmd.exe.

This should help.

Jon Culli

Senior Developer
Bank One (
Phone: 1-312-661-6354

"Beccio, Paul" <> on 06/05/2003 12:15:37 PM

Please respond to "Ant Users List" <>

To:   "'Ant Users List'" <>

Subject:  RE: help with exec

More specifically I'm trying to use a exec to run a bat/cmd file that will
map a network drive before copying files over.

Here is the tag
<exec dir="${bin.dir}"  executable="cmd.exe" timeout="100000">
 <arg path="intranet.bat" />

my intranet.bat just contains
net use P: \\\thisDrive

It just seems to hang at:

     [exec] Microsoft Windows XP [Version 5.1.2600]
     [exec] (C) Copyright 1985-2001 Microsoft Corp.

It never finishes...

Thanks for your help!

-----Original Message-----
From: Beccio, Paul []
Sent: Thursday, June 05, 2003 9:39 AM
To: 'Ant Users List'
Subject: RE: help with exec

I'm having the same problem, but I'm running Win (Newbie). It seems to hang
after I use the <exec> to call a cmd.exe. Basically, I just want to run a
cmd file that gives me a net use to map a drive.


-----Original Message-----
From: Lakshmi Vempati []
Sent: Wednesday, June 04, 2003 6:59 PM
To: Ant Users List
Subject: help with exec

I am using exec task to execute a perl script that needs certain input.

The code snipped I am using is as follows:

  <exec dir="${dir}"
         executable="${PERL_HOME}/bin/perl" >
    <arg line="${SCRDIR}/" />
    <arg line="domain=${domain}"/>
    <arg line="&lt; ${SCRDIR}/tpl/StartServer.bat.tpl &gt;

This seems to hang and never reach conclusion. If I add a timeout, then
it quits after timeout. What am I doing wrong?



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

This transmission may contain information that is privileged, confidential and/or exempt from
disclosure under applicable law. If you are not the intended recipient, you are hereby notified
that any disclosure, copying, distribution, or use of the information contained herein (including
any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error,
please immediately contact the sender and destroy the material in its entirety, whether in
electronic or hard copy format. Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message