Running a command via SSH
Jing Su
jingsu-26n5VD7DAF2Tm46uYYfjYg at public.gmane.org
Sun May 2 16:31:55 UTC 2004
> Date: Sun, 2 May 2004 12:24:55 -0400
> From: Sidney Shapiro <sidney-3Kd7Tu4o6f/sBN0MCq728g at public.gmane.org>
> Reply-To: tlug-lxSQFCZeNF4 at public.gmane.org
> To: tlug-lxSQFCZeNF4 at public.gmane.org
> Subject: [TLUG]: Running a command via SSH
>
> Howdy all,
>
> I often SSH into a remote server and run commands. Is there something I
> can do to keep those commands running after I log out or close the SSH
> window?
I'm sure there are lots of ways of doing this, but one that I am fond of
is using 'screen'. 'screen' is a text-mode window manager. One of the
nice features is to be able to 'detatch'. Once you detatch, the screen
session continues to run, and you can log off. Later, you can log back
in, and re-attach to it as if you had never left.
Since screen can manage multiple terminal sessions within itself, you only
need to run screen once and leave it running.
As a quickie...
once you run screen, you can detatch using "C-A d"
you can then re-attach to it using "screen -r"
-Jing
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list