From this question I know you can resume a stopped process by doing
kill -CONT $PID
is there a kill option to resume a process but in the background (like bg
but using a PID?)
From this question I know you can resume a stopped process by doing
kill -CONT $PID
is there a kill option to resume a process but in the background (like bg
but using a PID?)
Sending kill -CONT $PID
will not change the foreground/background status of the process indicted by $PID
.
Wikipedia says:
A stopped job can be resumed as a background job with the bg builtin, or as the foreground job with fg. In either case, the shell redirects I/O appropriately, and sends the SIGCONT signal to the process, which causes the operating system to resume its execution.
Thus, since the shell I/O redirection will not change when using kill -CONT $PID
, the process will effectively remain in the background of the shell.