Click to See Complete Forum and Search --> : SSH and Local Applications


Laslo7
06-27-2001, 02:44 PM
Say I want to start an application from SSH and want it to run after I close the connection. How would I go about doing that? Also is it possible to take control of said application on the local machine? Or to resume the program next time I SSH over.

Craig McPherson
06-27-2001, 03:17 PM
If you run a program with "open", like this:

open sleep 500

the "sleep 500" program will detatch itself from your console. Since it's no longer a child of your shell, it won't close when your shell does.

I'm not sure about how to take it back over: check the open manpage, it probably has something.

Urko
06-27-2001, 03:47 PM
You may want to check out a program called screen it let's you detach sessions and logoff and then reattach them when you log back in

ph34r
06-27-2001, 11:16 PM
Yah, use screen. Its way cool. Allows multiple virtual terms that keep going after you logout of ssh/telnet/local.

Strike
06-28-2001, 04:26 AM
nohup <program>

would also work. I believe