2010/7/21 praveen koduru <[email protected]>: > Yes it has executable permissions > but not able to execute the shell script.
First line of shell script? Which should look like #!/bin/sh Note that your script must be in UNIX text format (i.e. only a newline and not carriage-return+newline like DOS/Windows text files have) Could be the filesystem too, eg. /home/user/MyDocs is on my device mounted with the noexec option. Br Koos > > On Wed, Jul 21, 2010 at 4:38 PM, Marchant, Jan > <[email protected]> wrote: >> >> Silly answer - are you sure you have execute permissions set? >> >> See for example http://www.dartmouth.edu/~rc/help/faq/permissions.html >> >> Cheers, >> Jan >> >> ________________________________________ >> From: [email protected] >> [[email protected]] On Behalf Of praveen koduru >> [[email protected]] >> Sent: 21 July 2010 11:57 >> To: Daniil Ivanov >> Cc: [email protected] >> Subject: Re: on N900 after gainroot, executing shell script throws >> permission denied error. >> >> I have used both the ways Daniil, but no use.. >> >> I mean "sh shellscript.sh" works fine,, but ./shellscript.sh doesnt work >> >> I have even tried >> 1. /bin/sh >> 2. ./shellscript.sh >> >> also, >> 1.bash >> 2. ./shellscript.sh >> >> but same error "permission denied" >> >> On Wed, Jul 21, 2010 at 4:13 PM, Daniil Ivanov >> <[email protected]<mailto:[email protected]>> wrote: >> Hi Praveen! >> >> Use >> sh shellscript.sh or ./shellscript.sh >> >> Thanks, Daniil. >> >> On Wed, Jul 21, 2010 at 1:39 PM, praveen koduru >> <[email protected]<mailto:[email protected]>> wrote: >> > Hi, >> > on N900 after gainroot, executing shell script throws permission denied >> > error. >> > But the same shell script runs fine when I ran with /bin/sh >> > shellscript.sh >> > Any body can help me to resolve this >> > -PK >> > _______________________________________________ >> > maemo-developers mailing list >> > [email protected]<mailto:[email protected]> >> > https://lists.maemo.org/mailman/listinfo/maemo-developers >> > >> > >> > > > _______________________________________________ > maemo-developers mailing list > [email protected] > https://lists.maemo.org/mailman/listinfo/maemo-developers > > _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
