* Voytek Eymont <[EMAIL PROTECTED]> [2003-09-06 21:50]:
> if I'm on a ssh connection to a remote Linux machine, and, :
> 
> wish to run something that will take some time to process, and, I want to
> log off before it completes, what do I use to spin off such action
> in a separate session that will survive ssh logof ?

Just running it in the background might work, eg:

[EMAIL PROTECTED]:~$ program &
[1] 2539
[EMAIL PROTECTED]:~$ exit

Really depends on the nature of the program you want to run. I've got
a Perl ircbot, and a couple of shell scripts that work this way. Might
be better to set it up as an 'at' or 'cron' job, depending on what you
want to do.

> also, at the moment, I have been opening say 4 separate ssh sessions to the
> remote machine (which is a bit of PITA having to logon 4 times), someone
> here pointed at 'screen' which I guess gives me similar functionality, is
> that the way to run multiple sessions to the same host ?

Does sound like 'screen' is what you're looking for. Basics: ssh into
the remote host, type 'screen'. Then 'emacs file.txt' or whatever, work
away at that. When you want to create a new session hit <Ctrl-a-c>, and
you're at a new prompt. 'vi file.txt', or whatever. Move around in screen
sessions using <Ctrl-a-1>, <Ctrl-a-2>, and so on. More details in man screen.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to