Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

You can verify if anything is still running using

ps -aux | grep yum

But I'm pretty sure it will be killed as soon as you get disconnected.

If you need to run something after you leave use nohup

share|improve this answer
    
thanks for the help –  doubter Dec 21 '10 at 22:09
add comment

What you really want to do is run this in screen.

Every day when I come into the office, I ssh to my development / db server and run screen -RD, which reconnects my session as if I had never disconnected. You should be able to yum install screen.

See http://www.kuro5hin.org/story/2004/3/9/16838/14935 to start, and http://www.gnu.org/software/screen/manual/ for a comprehensive reference.

share|improve this answer
add comment

Use screen. Just start screen, do your stuff and when you got disconnected, run: screen -r or screen -Dr.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.