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

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

2 Answers 2

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.

SEE ALSO

bash(1)

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

 
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.