Timothy Martens
Timothy Martens

Reputation: 688

Disown a job currently running under another shell

At location A I started a process that will be running on a server over the night. I never disowned this process nor did I use nohup. =\

I am now at location B and I want to keep this process running but I want to kill the shell and logout at location A.

Is it possible to do what I want from location B?

Upvotes: 1

Views: 1107

Answers (2)

jofel
jofel

Reputation: 3415

You can try reptyr. But since neercs is not what you want, which can also grab processes from another shell, maybe reptyr does not help you, too.

Of course, after moving the application to your new shell, you need to kill the old one to logout.

Upvotes: 1

Eduardo Ivanec
Eduardo Ivanec

Reputation: 11862

You can give neercs a shot.

Here's a video showing how it works.

It's supposed to very unstable, though, and isn't packaged in CentOS or Debian-based distributions.

Upvotes: 1

Related Questions