Re: Running tasks through SSH

From: tim wunder (twunder_at_REMOVEcomcast.net)
Date: 04/22/04


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



Relevant Pages

  • Cannot open database requested in login ASPState. Login fails. Login failed for user sa.
    ... Visual Studio app, I got round to the option for storing the state in SQL ... sessionState statement (so the app runs with the default in-proc session ... What is causing the login failure? ... Cannot open database requested in login 'ASPState'. ...
    (microsoft.public.sqlserver.security)
  • Re: [opensuse] openSUSE 12.1 KDE and sessions
    ... Next login, there are two navit apps running. ... I suspect the session management part of KDE is involved. ... If you log out w/o closing the app, and have the app defined in autostart, ...
    (SuSE)
  • Re: [SLE] VNC
    ... > There are many ways to use VNC. ... > vncserver session runs X-Windows with you already logged on. ... > Here you also need the VNC Password since you donot use the x-widnows login. ...
    (SuSE)
  • Re: [SLE] VNC
    ... There are many ways to use VNC. ... vncserver session runs X-Windows with you already logged on. ... Here you also need the VNC Password since you donot use the x-widnows login. ...
    (SuSE)
  • Re: [SLE] VNC
    ... Jerry ... >> this method is that program you start running in the session continue ... In order to keep unwanted people off your session, VNC ... >> login, I don't see a reason for the double password schemes. ...
    (SuSE)