Hello all,
I have never gotten into applescripts, but now I need one, and I'm not too sure where to begin.
I have a server set up here at home, and from it I serve several personal sites. In a few weeks I will be out of town on business, and will sending people to my site(s). I plan on leaving the sever running, but in the event of a power outage, I need an applescript that restarts apache and webmin via terminal once the machine reboots.
I installed a newer version of apache in a different location, so the system prefs option doesn't work for me.
The 2 commands I need to run are:
/etc/webmin/start
and
/usr/local/apache2/bin/apachectl start
I also assume the whole thing would need to begin with a sudo su
Can anyone offer up some tips?
Thanks,
-j