ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: shell script
Date Thu, 12 Jul 2001 16:46:15 GMT
--- Saurabh Agarwal <saurabh.agarwal@wipro.com> wrote:
> I'm on NT but connected remotely to Unix M/c
> I do telnet and run the files.

On a Unix machine, you should be able to <exec> a shell-script. For
example, here's what happens when I telnet to a Unix machince from my NT
and execute a shell-script via 'ant':

  testsh:
       [exec] Hi there

My build.xml contains:
  <?xml version="1.0"?>
  <project name="test" default="testsh">
    <target name="testsh">
      <exec executable="foo"/>
    </target>
  </project>

And my little "foo" script is:
  #!/bin/sh

  echo "Hi there"
  exit 0

What happens if you try this?

Diane

> ----- Original Message -----
> From: Diane Holt <holtdl@yahoo.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Wednesday, July 11, 2001 7:46 PM
> Subject: Re: shell script
> 
> 
> > --- Saurabh Agarwal <saurabh.agarwal@wipro.com> wrote:
> > > I'v observed that I can't run a shell script using Ant.
> > > commands like ls, etc are being executed but if I run some shell
> script
> > > the output is not there!!!!
> >
> > What type of machine are you on?
> >
> > Diane
> >
> > =====
> > (holtdl@yahoo.com)
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 
> > The Information contained and transmitted by this E-MAIL is
proprietary
> to 
> Wipro Limited and is intended for  use only by the individual or entity
> to which 
> it is addressed, and may contain information that is privileged,
> confidential or 
> exempt from disclosure under applicable law. If this is a forwarded
> message, 
> the content of this E-MAIL may not have been sent with the authority of
> the 
> Company. If you are not the intended recipient, an agent of the intended
> 
> recipient or a  person responsible for delivering the information to the
> named 
> recipient,  you are notified that any use, distribution, transmission,
> printing, 
> copying or dissemination of this information in any way or in any manner
> is 
> strictly prohibited. If you have received this communication in error,
> please 
> delete this mail & notify us immediately at mailadmin@wipro.com 
> 
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message