GANT shell script execution

Doooh Head doooh_head at hotmail.com
Sat Oct 4 18:25:12 UTC 2008


Add #!/bin/bash, not #!/bin/sh?  Why?


Doooh

________________________________
> Date: Sat, 4 Oct 2008 14:23:34 -0400
> From: david at ngowiki.net
> To: ubuntu-ca at lists.ubuntu.com
> Subject: Re: GANT shell script execution
> 
> Then you need to add
> 
>  #!/bin/bash
> 
> at the top of the script
> 
> On Sat, Oct 4, 2008 at 2:09 PM, Doooh Head  wrote:
> 
> Actually the shell script file is being executed by GANT, using a command something like:
> 
> def ant = new AntBuilder()
> ant.exec(outputproperty:"cmdOut",
>     errorproperty: "cmdErr",
>     resultproperty:"cmdExit",
>     failonerror: "true",
>    executable: "./execute.sh")
> 
> 
> Doooh
> 
> ________________________________
>> Date: Sat, 4 Oct 2008 13:49:53 -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:57 PM, Doooh Head  wrote:
>>
>> 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
>>
>>
>>
>> you can force the execution of your file by the shell by using the sh command, you don't even need to make it executable t
>>
>>
>> sh script
>>
>>
>> --
>> 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