PDA

View Full Version : Run on startup terminal




distroyerxx
Feb 3, 2012, 09:55 PM
Hey guys. I know there is a way to run apps on startup in system pref. but I was wondering how i would go about doing it through the terminal. Please let me know if there is a script for this. thanks! :D



larkost
Feb 3, 2012, 10:42 PM
Your question is not really clear. Do you want to have apps launch when you open Terminal.app? Or are you trying to launch GUI apps from the command line? Or are you trying to have command line programs/scripts fire off when you log in?

Be specific, and talk about what you are trying to accomplish. And don't fall into the trap of just talking about how you think you should get to your goal, talk about the goal itself.

zeppenwolf
Feb 3, 2012, 11:35 PM
Why do you want to do that?

thundersteele
Feb 4, 2012, 02:23 AM
I'm not exactly sure how to do it, but you should look into either cron or launchctl.

cron is more of a scheduler, i.e. for stuff that should run on a regular basis
launchctl is an interface to launchd - it might be able to do what you want

distroyerxx
Feb 5, 2012, 11:44 PM
ok, well I made an application through automator and i want to send it to some firends. instead of explaining to each individual person how to make that app launch on startup, i could just put a command into the application itself (through automator) to make the app launch on startup... my question is what would that command be?

gnasher729
Feb 8, 2012, 07:19 AM
ok, well I made an application through automator and i want to send it to some firends. instead of explaining to each individual person how to make that app launch on startup, i could just put a command into the application itself (through automator) to make the app launch on startup... my question is what would that command be?

Apps that do that kind of thing are really, really, really frowned upon. If your friends don't know how to make the app launch at startup, they wouldn't know how to make it stop to launch at startup, so making the app do that would be exceedingly impolite.