Re: [CentOS] bash job control and signals

2012-08-30 Thread Theo Band
On 08/29/2012 11:57 PM, Stephen Harris wrote: On Wed, Aug 29, 2012 at 10:00:47PM +0200, Theo Band wrote: and I cannot change this application. I want all processes that are children also to become suspended. I tried to add a trap, but that did not work. Any idea how to make this work? The

[CentOS] bash job control and signals

2012-08-29 Thread Theo Band
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

Re: [CentOS] bash job control and signals

2012-08-29 Thread Stephen Harris
On Wed, Aug 29, 2012 at 10:00:47PM +0200, Theo Band wrote: and I cannot change this application. I want all processes that are children also to become suspended. I tried to add a trap, but that did not work. Any idea how to make this work? The magic phrase you're looking for is process