On 1/24/11 at 3:48 PM, [email protected] (Jonathon Kuo) wrote:

From the Terminal window (bash, OSX 10.6.5) I'm running a command-line program in the background like this:

% ./myprogram 121 331 8.9 &
[1] 38547

This puts it into the background where it comtineus to run:

38547 ttys000    0:00.01 ./myprogram 121 331 8.9

But I want it to stay running even when I quit from Terminal. It always dies when I quit Terminal so I have to keep the window around and I can't log out until it finishes.

Is there another way to do this?

Run your program in a screen session (man screen) and detach the session (C-a d) before quitting Terminal.
--
Christopher Bort
<[email protected]>

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to