Stoopid script failure

Waleed Harbi waleed.harbi at gmail.com
Sat Feb 6 15:14:18 UTC 2010


*Try:
#./tst

#file tst
tst: Bourne shell script text executable


*--------------------------
Best Wishes,
Waleed Harbi

Dream | Do | Be


On Sat, Feb 6, 2010 at 6:03 PM, Patrick O'Callaghan
<pocallaghan at gmail.com>wrote:

> Can anyone explain why this doesn't work? I've been writing shell
> scripts on and off for several decades and I can't see what's going on
> here. Is senility setting it?
>
> $ cat > tst
> #!/bin/sh
> echo foo
> $ chmod +x tst
> $ ls -l tst
> -rwxrwxr-x 1 poc poc 19 2010-02-06 10:22 tst
> $ type tst
> tst is ./tst
> $ tst
> bash: ./tst: Permission denied
>
> (SElinux is off, if it matters).
>
> poc
>
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines:
> http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100206/c8c91150/attachment.html 


More information about the users mailing list