Re: Running tasks through SSH
From: tim wunder (twunder_at_REMOVEcomcast.net)
Date: 04/22/04
- Next message: Richard Gunn: "Re: Running tasks through SSH"
- Previous message: N6BAH: "Re: Corrupt Updates: what to do?"
- In reply to: Richard Gunn: "Running tasks through SSH"
- Next in thread: Richard Gunn: "Re: Running tasks through SSH"
- Reply: Richard Gunn: "Re: Running tasks through SSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Apr 2004 16:58:10 -0400
On 4/22/2004 4:28 PM, I believe that Richard Gunn wrote:
> Hi.
>
> I am fairly new to Linux, and whilst I am getting to grips with the GUI have
> a query regarding the running of applications / tasks.
>
> I connect to my machine via SSH on my LAN and login. If I have a lengthy
> task to be getting on with - such as up2date or BitTorrent client, how can I
> run that task and shut down my SSH session... and then to be able to connect
> back later to check up on its progress?
>
> The only way I am able at the moment is to run a terminal session within
> gnome and use VNC to access it (so I can keep that session running and just
> shut down VNC when I am not checking up on it).
>
> I hope I made my requirement clear as my googling for help has been
> fruitless to date. If I could get pointed the right way it would be
> appreciated.
>
>
screen
before running your app, execute screen. Run the app you want to run,
press Ctrl-A to get screen's attention, then D to detach, then logoff.
screen will continue yur app until done, return to the console and wait.
Next time you log in, type 'screen -r' to resume your screen session,
and then you're back where you started. The beauty is that you don't
need to login remotely to resume your screen'd session. You can resume
it from a local login, and vice versa.
For instance, I started an update to KDE 3.2.2 last night while logged
in at home in a screen session. When I got in to work, I ssh'd into my
home box, resumed the screen session, and found that the update worked
without error.
'man screen' for more details.
HTH,
Tim
- Next message: Richard Gunn: "Re: Running tasks through SSH"
- Previous message: N6BAH: "Re: Corrupt Updates: what to do?"
- In reply to: Richard Gunn: "Running tasks through SSH"
- Next in thread: Richard Gunn: "Re: Running tasks through SSH"
- Reply: Richard Gunn: "Re: Running tasks through SSH"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|