PDA

View Full Version : Making my first script



rootofalldroid
12-13-2011, 04:23 PM
I am trying to make my first script. I am using Miui 10.21. The script i would like to make is to automatically run cat.jpg so i can use Rom manager. I have tried to use Gscript lite and text editor along with Script manager. what i have typed in is su <enter> cat.jpg <enter> then try to run as script and executable. I am sure I am missing something. I am also trying to do this on my DX.Any help would be great
Thanks

juhde
12-13-2011, 05:09 PM
You want your script to be something like this.

#!/system/bin/sh
cat.jpg

Use script manager to select run as root and run at boot

Sent from my Android device.

rootofalldroid
12-13-2011, 05:24 PM
Thanks juhde
can i do that with any and all scripts that i want?

juhde
12-13-2011, 05:38 PM
More or less. Your best bet would be to search for bash script writing guides.

I really don't know much about scripts beyond the very simple stuff.

Sent from my Android device.