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.