View Full Version : Running apps or commands in the background.
guitarmaster18
Apr 12, 2007, 09:50 PM
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?
cruzrojas
Apr 13, 2007, 12:34 AM
If is one application you will run from terminal, you can use &
example
>./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 &
rhoydotp
Apr 13, 2007, 01:02 AM
nohup yourcommand &
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.