Saturday, April 30, 2016

Writing shell scripts

I wrote a shell script that I saved in the root directory of the sdcard, however, file permissions were 660 and I could not find a way to make it executable. 'chmod +x' did not work, nor could SolidExplorer change permissions. Googling suggested that if I copied it to e.g. /data I could then change permissions, file permissions were indeed 760 after copying but did not stick when copying the file back to the sdcard and reverted to 660.

I can execute the shell script on the sdcard running it as 'sh script' but I'd rather have it executable as is.

Is this not possible?

Thanks.


from xda-developers http://ift.tt/1YYqe2o
via IFTTT

No comments:

Post a Comment