On Thu, Oct 31, 2002 at 02:55:36PM -0600, christopher j bottaro wrote:
> is there any way i can log into a remote computer via ssh, start a
> command, then kill the sshing shell and have the command still be
> running on the remote machine?

I do this frequently.  Most commonly it is with wget and wget has its
own "-b" flag and that puts it in the background, waiting for me to
watch its progress as it writes its log file.

For a more general answer, but something I use less, use "screen".
Obviously "man screen" will tell you more, but to get started quickly:

  $ screen emacs -nw      # can't have an X-window launching for this

Do stuff, then edit away to do your stuff, except ctrl-A won't work
right.  Try ctrl-A followed by ?.  That will put you in a help.  To
get out do ctrl-A ctrl-D.  Logout.  Login again.

  $ screen -r

And you will be back in your emacs session.

Look at the man page to see details of getting everything to work
smoothly, like letting you do ctrl-A to get to beginning of line in
emacs.  Gotta figure that out.  I haven't.

-kb



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to