On Sun, 1 Nov 2020 at 21:23, Chet Ramey wrote:
>
> On 11/1/20 5:13 AM, clime wrote:
>
> > Work with process groups should be natural in bash. It can't be that
> > complex. I struggled with this for several hours and found lots of
> > people on the net that struggled with the same problem too.
>
>
On 11/1/20 5:13 AM, clime wrote:
> Work with process groups should be natural in bash. It can't be that
> complex. I struggled with this for several hours and found lots of
> people on the net that struggled with the same problem too.
It is natural, and job control is the most natural way to do i
On 11/1/20 11:48 AM, Oğuz wrote:
> 1 Kasım 2020 Pazar tarihinde clime yazdı:
>> Hello, it doesn't work for me:
>>
>> $ export BASH_LOADABLES_BUILTIN=1
>
>
> by set, I meant to a path where loadable builtin binaries reside
It would be superbly helpful to mention the right variable though...
$ B
1 Kasım 2020 Pazar tarihinde clime yazdı:
> On Sun, 1 Nov 2020 at 11:01, Oğuz wrote:
> >
> >
> >
> > 1 Kasım 2020 Pazar tarihinde clime yazdı:
> > ...
> >>
> >> Please, provide a syntactic construct to spawn a new process group (or
> >> at least there should be some usable command to do that).
On Sun, Nov 01, 2020 at 11:13:37AM +0100, clime wrote:
> On Sun, 1 Nov 2020 at 11:01, Oğuz wrote:
> >
> > You can use the loadable builtin `setpgid' if you have to. Assuming
> > BASH_LOADABLES_BUILTIN is set, this should work:
> >
> > enable -f setpgid{,}
> > { setpgid $BASHPID{,}; a | b;
On Sun, 1 Nov 2020 at 11:01, Oğuz wrote:
>
>
>
> 1 Kasım 2020 Pazar tarihinde clime yazdı:
> ...
>>
>> Please, provide a syntactic construct to spawn a new process group (or
>> at least there should be some usable command to do that).
>>
>
> You can use the loadable builtin `setpgid' if you have
Job control is subideal as I mentioned in the original email.
Thanks
clime
On Sun, 1 Nov 2020 at 09:58, Andreas Schwab wrote:
>
> On Nov 01 2020, clime wrote:
>
> > Please, provide a syntactic construct to spawn a new process group (or
> > at least there should be some usable command to do that)
1 Kasım 2020 Pazar tarihinde clime yazdı:
...
> Please, provide a syntactic construct to spawn a new process group (or
> at least there should be some usable command to do that).
>
>
You can use the loadable builtin `setpgid' if you have to. Assuming
BASH_LOADABLES_BUILTIN is set, this should wor
On Nov 01 2020, clime wrote:
> Please, provide a syntactic construct to spawn a new process group (or
> at least there should be some usable command to do that).
Enable job control.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780
I was battling this problem now for several hours
i wanted to do this:
{ a | b; } & pid=$!
and then later
kill -- -$pid
to kill all the processes spawned by the pipeline.
But this proved to be immensely complicated as no new process group is
spawned from within a script (unless set -m which i
10 matches
Mail list logo