out_sider
out_sider

Reputation: 5

Conitue ssh from previous state

I'm accessing through ssh to a linux box. I was simply updateing the packages with yum update. I then disconnected but when I connnected again with ssh using the same account I couldn't now if the update process had already finished.

How can I know the status of tasks I've started before disconnecting when I reconnect to the server?

Thanks in advance

Upvotes: 0

Views: 83

Answers (1)

vls
vls

Reputation: 2319

Use screen <program>. At this point you can either disconnect or hit CTRL-A, CTRL-D and do other things. You can later re-attach your session to the screen running your program by screen -r.

Specifically if you want to save the state of your shell between ssh sessions you can just run screen and then run your programs.

Upvotes: 4

Related Questions