[xubuntu-users] Not able to execute .sh files

Ian ian at loosescre.ws
Wed Nov 25 21:49:05 UTC 2015


Try changing the first line of your script from #! bash to #! /bin/bash

On Wed, Nov 25, 2015 at 1:16 PM, Fred Roller <fredroller66 at gmail.com> wrote:

> Is the .sh file still executable after the update
>
> -rwxrwxr-x 1 user user 29 Nov 25 16:03 HelloWorld.sh*
>
> note the "x" in the permissions.
> If not then from command line...
>
> chmod +x [filename]
>
> to add to the given file.  If you suspect a bug then from cli...
>
> vi HelloWorld.sh [or your fav editor]
>
> #! bash
> echo "Hello World"
> exit
>
> save and exit editor. Then make executable with...
>
> chmod +x HelloWorld.sh
>
> then execute the program...
>
> ./HelloWorld.sh
>
> which should produce...
>
> user@~$ ./HelloWorld.sh
> Hello World
> user@~$
>
> do this as your user, not sudo, and should tell you whether or not there
> is an issue.  If it executes then the issue will most likely be permissions
> in the .sh programs that are failing or the program itself.  After the test
> you can erase the HelloWorld.sh program. ;)
>
> HIH
> Fred
>
>
> On 11/25/2015 06:18 AM, JMZ wrote:
>
>> Even if I try to execute it using terminal nothing happens.
>>
>> Any suggestions?
>>
>
>
> --
> xubuntu-users mailing list
> xubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20151125/5fee9e68/attachment.html>


More information about the xubuntu-users mailing list