Running apps or commands in the background.

Discussion in 'Mac Programming' started by guitarmaster18, Apr 12, 2007.

  1. guitarmaster18 macrumors regular


    Mar 27, 2007
    How would you run say... a UNIX command in terminal as a background process, but not be able to see it running unless you access it through Activity Monitor? I'm looking for something that I can input into one of my little UNIX apps that sets the desktop as a screen saver. I'm looking for a way I can run that without noticing terminal open. Any thoughts?
  2. cruzrojas macrumors member


    Mar 26, 2007
    If is one application you will run from terminal, you can use &

    >./MyApp &

    that will force the application to run on the background.
    Just make sure it doesn't have outputs to screen because those will appear while you are working.

    I usually need to run long programs and collect the data, so what I do is redirect the output to a file and run it in the background.

    >./MyApp > out.dat &
  3. rhoydotp macrumors 6502


    Sep 28, 2006

Share This Page