GANT shell script execution

Doooh Head doooh_head at hotmail.com
Sat Oct 4 16:57:00 UTC 2008


Thanks Dave, I've added that to the code at work and will attempt it next week.

I also did some searching and came up with this url (http://linux.dbw.org/shellscript_howto.html) which explains alot of things that would have been helpful to have known when I embarked on this task.  I did say I was a newbie when it come to this stuff!  The 'ol DOS that I do know a little bit about just isn't the same under Linux...LOL
Thanks again.

Doooh

________________________________
> Date: Sat, 4 Oct 2008 12:45:07 -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:31 PM, Doooh Head  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

_________________________________________________________________





More information about the ubuntu-ca mailing list