how to write a simple bash command
I have a mac mini that has some software that is supposed to start at bootup, but does not always do so. In order to get the software running I need to open a terminal window and type some commands. Is it possible to just write a text file and turn it into a .command file that will not require me to write it out every time.
Here is exactly what I have to write in Terminal to get the program running again.
sudo su
filler14
ignition stop
ignition start
exit
exit
Typing sudo su asks for the password which is filler14. After entering it I type ignition stop and it takes a second and it responds that it stopped. I type ignition start and it takes about 3 seconds and responds that it is running. I type exit to get out of sudo su and then exit again and it says operation complete, and then I close terminal.
Is there a way to automate this?
Thanks,
Michael
Mac mini, Mac OS X (10.6.8)