How to start a stopped process on Linux

I have a stopped process in Linux on this terminal. Now I'm on a different terminal. How to start this process. What signal would I send to kill. I own this process.

+5
source share
2 answers

You can issue a kill -CONT pid that will do what you want while another terminal session still exists. If the other session is dead, the conclusion may not be useful.

+8
source

In addition to @Dave's answer, there is an advanced method for redirecting input and output file descriptors of a running program using GDB.

FreeBSD script PID 4711:

> gdb /bin/sh 4711
...
Attaching to program: /bin/sh, process 4711
...
(gdb) p close(1)
$1 = 0
(gdb) p creat("/tmp/testout.txt",0644)
$2 = 1
(gdb) p close(2)
$3 = 0
(gdb) p dup2(1,2)
$4 = 2

EDIT - : 1, , 1. 2 1 2.

stdout stderr . stdin, p close(0), PIPE smth.

disown , , , SIGHUP.

. / , disown -a, .

+4

All Articles