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?)
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
kill -CONT $PID will not change the foreground/background status of the process indicted by
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.