Run on startup terminal

Discussion in 'Mac Programming' started by distroyerxx, Feb 3, 2012.

  1. macrumors newbie

    Joined:
    Feb 3, 2012
    #1
    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
     
  2. macrumors 6502a

    Joined:
    Oct 13, 2007
    #2
    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.
     
  3. macrumors regular

    Joined:
    Nov 17, 2009
  4. macrumors 68030

    Joined:
    Oct 19, 2011
    Location:
    Switzerland
    #4
    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
     
  5. thread starter macrumors newbie

    Joined:
    Feb 3, 2012
    #5
    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?
     
  6. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #6
    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.
     

Share This Page