No,
I got different output as
testsh:
[exec] Result: -1
BUILD SUCCESSFUL
So , Plz tell me What should I do now.
Diane Holt wrote:
> --- Saurabh Agarwal <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 11, 2001 7:46 PM
> > Subject: Re: shell script
> >
> >
> > > --- Saurabh Agarwal <[EMAIL PROTECTED]> 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
> > >
> > > =====
> > > ([EMAIL PROTECTED])
> > >
> > >
> > >
> > > __________________________________________________
> > > 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 [EMAIL PROTECTED]
> >
> >
>
> =====
> ([EMAIL PROTECTED])
>
> __________________________________________________
> 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 [EMAIL PROTECTED]