24Apr/112
Mac Servify autostart tip
Another tip submitted by a user:
Tip for autostarting Servify on a Mac:
Create this one-line AppleScript in AppleScript Editor:
do shell script "cd /Applications/Servify; mono Servify.exe username password 1337 320 >/dev/null 2>&1 &"
Save the script as a run-only application. Finally add the saved application to the Login items of your account settings.
Details at http://iloapp.vidartysse.net/blog/vidarismer?Home&post=5
February 8th, 2012 - 07:42
johannes-
I am setting up custom scripts to start and kill servify because it hangs in the shell if an error occurs and requires a kill pid.
I was wondering if theres a way to make this apple script run the mono servify.exe first, then supply the login details. Currently it runs the process with a pid that includes your login information in plain sight whereas the manual route only shows “mono servify.exe”. its a bit of a security risk.
do you know how to tailor this script to run a bit more like the manual start/connect process?
February 12th, 2012 - 20:57
Matt,
there is a linux tool called “expect” which you might be able to use (not really sure here). There has also been support for loading credentials from a file: “mono Servify.exe login.txt” where login.txt has following layout:
username=somename
password=somepass
bitrate=320
port=1337