Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I forgot to use screen and I have a task that has been running for quite some time, and I do not want to lose the saved data. Basically Ctrlc will end the task and save the data if I am on the same terminal session, is there a way to stop it in different SSH window?

I do not have access to the same terminal window at the moment.

share|improve this question

C-c sends SIGINT to the foreground process group, you can kill it using kill on the foreground process group id (see ps -ej output).

kill -s INT -- -pgid
share|improve this answer
thanks i will remember this next time, I just tried to ssh in and the system rebooted so I lost the data :| – andyADD Apr 5 '13 at 2:50

There are several utilities that are able to change the tty of a running process. Most of them written exactly for the purpose of attaching a running process into a terminal multiplexer - see e.g.:

share|improve this answer

Your Answer


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.