GANT shell script execution

David Tremblay david at ngowiki.net
Sat Oct 4 16:45:07 UTC 2008


On Sat, Oct 4, 2008 at 12:31 PM, Doooh Head <doooh_head at hotmail.com> wrote:

>
> No my script does not begin that way.  Why should it?  What does that do?
>

Then it should because this is how the script know what language to use

it could also be

#!/bin/bash

but it depend on the distribution (or the version of ubuntu) you are running
the script on

check here for the explanation

https://wiki.ubuntu.com/DashAsBinSh



> I don't have access to the script right now, I was doing all of this at
> work yesterday and I was unable to resolve it.  The error indicated that the
> directory was inaccessible.  I did try and copy each line into a shell and
> execute each one and each completed successfully, so the directory was
> there, the maven command completed, etc.
>
>
> Doooh
>
> ________________________________
> > Date: Sat, 4 Oct 2008 12:25:06 -0400
> > From: david at ngowiki.net
> > To: ubuntu-ca at lists.ubuntu.com
> > Subject: Re: GANT shell script execution
> >
> >
> >
> > On Sat, Oct 4, 2008 at 12:12 PM, Doooh Head  wrote:
> >
> > Hi All,
> >
> > I have a very "Linux-newbie" question for you.  I have a very simple
> shell script (execute.sh):
> >
> > cd ~/workspace/trunk/time
> > maven clean jar:install
> > cd ~/workspace/start/point
> >
> > I am trying to make this script execute by some GANT (Groovy+ANT) code.
>  The GANT code that calls the script is fine and I can tell it is calling
> it, but I get an error when this script attempts to execute the first cd
> command saying that it is unable to execute it.
> >
> >
> > I have tried relative directory references, I have tried specific
> directory references.  I have made sure I have all of the necessary
> permissions.  This is all happening within the confines of my "home" folder.
> >
> > Anybody have any ideas, or suggestions?
> >
> >
> > Does your script start by
> >
> > #!/bin/sh
> >
> > If you do it manually do you have the same error and what is the error
> again ?
> >
> >
> >
> > --
> > David Tremblay
> >
> > IT analyst
> > mob: 418-208-3631
> > jabber: ict4ngo
> > skype : ict4ngo
> >
> > Blog : http://blog.ngowiki.net
>
> _________________________________________________________________
>
>
> --
> ubuntu-ca mailing list
> ubuntu-ca at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ca
>



-- 
David Tremblay

IT analyst
mob: 418-208-3631
jabber: ict4ngo
skype : ict4ngo

Blog : http://blog.ngowiki.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20081004/b9f090a8/attachment.html>


More information about the ubuntu-ca mailing list