ericmurphy
Registered
Here's the deal: I run OSXVNC to connect to my Mac from work. I don't like the VNC server running when I'm not at work, because VNC's not that secure, and I'd prefer it not run unless I'm using it.
I have a cron job that starts the server in the morning, while I'm on my way to work. If I remember, I quit the server when I get home. But I often forget. So it would be nice to schedule a cron job that would stop the server. Since the server doesn't open or save any files, I could probably just kill the process, but I'd need to get the PID. Is there an easier way to do it, by referring to its application name? Is there a Unix command that analogizes to, e.g., /usr/bin/open /Applications/osxvnc.app?
I have a cron job that starts the server in the morning, while I'm on my way to work. If I remember, I quit the server when I get home. But I often forget. So it would be nice to schedule a cron job that would stop the server. Since the server doesn't open or save any files, I could probably just kill the process, but I'd need to get the PID. Is there an easier way to do it, by referring to its application name? Is there a Unix command that analogizes to, e.g., /usr/bin/open /Applications/osxvnc.app?