Griffinaz
08-10-2009, 01:21 PM
I don't know that much about scripting on the iPhone but what I am hoping to do is to go in Terminal on my jailbroken iPhone and enter a single command that runs a script that does the following:
Change directory to one that is like 50 characters long so I don't have to retype it every time I want to go in there.
Once in the directory change the permissions on any files recursively to allow them to be written/deleted by any user on the phone.
Simple sounding. I know the commands for all this if I want to type them manually in terminal every time I need to do this but is there a way to create a mini-script called something like "filechg" that I can log into Terminal and run to do this? I can do it on a Linux or Unix desktop by creating a bash script but can't get it to work on the iPhone.
Change directory to one that is like 50 characters long so I don't have to retype it every time I want to go in there.
Once in the directory change the permissions on any files recursively to allow them to be written/deleted by any user on the phone.
Simple sounding. I know the commands for all this if I want to type them manually in terminal every time I need to do this but is there a way to create a mini-script called something like "filechg" that I can log into Terminal and run to do this? I can do it on a Linux or Unix desktop by creating a bash script but can't get it to work on the iPhone.