1

I have a process running in a terminal I'm unable to access due to that the X session it is running in is frozen. I would like to send some commands via stdin that tell it to stop before I kill the X session. I would also like to see stdout to verify that the command ran. How would I go about doing this?

To be clear: I do not have access to the terminal the process is running in and it is not running as a job.

Newbyte
  • 1,036

1 Answers1

-1

reptyr can achieve this.

Using this syntax: reptyr -Ts <pid> I was able to attach myself to a process running in an inaccessible terminal and both see its stdout and write to its stdin (including executing what I had written).

Newbyte
  • 1,036