Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running myisamchk to one table using SSH terminal on my laptop, I need to leave soon and it seems like it's taking a bit longer then I expected, is there a way to sort of interrupt it and re-run it under screen or something?

share|improve this question
up vote 1 down vote accepted

You can't move a process into a screen session, but you can background it and then disown the process with disown <pid>, which will stop the process from dying when you logout.



share|improve this answer
how do I do that? – alexus Oct 1 '09 at 14:08
Answer updated. – womble Oct 1 '09 at 22:01

You basically can't, as it wasn't started under a utility such as screen or nohup; the process is locked into your tty at this point and can't be transferred to another as myisamcheck has no built-in facility for pausing it's operation mid-run. I've often wished I could do this with many tasks that I didn't realize were going to take hours...

share|improve this answer

Your Answer


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.