Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How may I restore the windows for a given pid? It would be useful in some situations where the window of a certain program disappears (happens to me sometimes).

For example, every time when i'm heading to close hexchat, it shows a dialog for confirmation. If i click cancel, the window is gone anyway, but the process continues running in the background. ( I can pgrep it's id ).

Is it possible to restore the window, given I know the pid?

share|improve this question
    
Did you figure this out? This still happens occasionally to me - looks like they're having trouble fixing this one. –  uosɐſ Jan 17 at 0:54
    
I don't remember exactly. Had to come back to windows for a while. I think someone told me in the chat that it had been fixed on the development branch at the time. But if you say it still happens, then the bug is still there... Sorry not to be of any help. –  userEng15 Jan 17 at 12:33
add comment

2 Answers

I find some manual. Try with

screen -r PID

or

screen -R PID
share|improve this answer
add comment

If the process is simply in the background, perhaps this answer fits here too:

Use fg to bring the process back to foreground.

See the full answer for more instructions.

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.