stdout - How can I put a process to background after its execution with broken CTRL+Z? -
The question is special because some keys, such as CTRL + Z, have stopped working.
I tried to keep this process in the background by typing:
- Find
- CTRL + Z
- BG
However, I can still see the stdout. The only difference to the first step is that the CTRL + Z command no longer works. It's too bad when I have unbooked jobs and my hard drive is more than 100 GB. Then
How can I put the background in the process?
[description]
I am using the fourth version of Bash on Mac.
[Crack answer by Nicholas Riley]
The problem is that I do not understand the "effect" of running the background of the process. I do not understand that Commons, such as CTRL + Z, do not work for background processes. I was still able to kill the process in another shell with the command:
ps -ej | Awk '! / Grep / & amp; Amp; / Search / {print $ 2} '| Xargs kill-9
^ z not working Because the biggest job is now the shell, and the shells usually do not respond to SIGTSTP . (If you really want to suspend a non-login shell, then suspended usually works.)
The problem is that you have an impact in the background Thinks wrong. Redirecting the standard output of the job is unrelated.
Actually, it is not clear what you want to do. If you want to stop find by just walking, use fg and ^ C or ^ \ (Which by default send SIGINT and SIGQUIT respectively).
If you want to run to run but press the output next to it, then the easiest way to think, I can think of bg; Reject; Exit . She will stop Shell from hitting her hair process ( Find ) and exiting the shell; Assume this is at the top level of the terminal window, you will see a little more output and find will continue (but you will not have any way to interact with it).
Comments
Post a Comment