Displaying 1 result from an estimated 1 matches for "your_process".
2012 Aug 29
1
bash job control and signals
I want to suspend a script using a signal but that does not work as I
want. I made an example script:
$ cat script
#!/bin/bash
echo $$
gkrellm
If run this script gkrellm starts up and I can use job control from the
terminal to suspend the script (CTRL-Z) and resume it (fg or bg).
If I suspend I can see that gkrellm freezes (that's why I choose gkrellm
in this example):
$ ./script
23632