Multiple cvs/git mirror tasks?

Jim Meyering jim@meyering.net
Fri Jul 13 16:17:00 GMT 2012


Jim Meyering wrote:

> Jim Meyering wrote:
>
>> Frank Ch. Eigler wrote:
>>> Hi -
>>>
>>> meyering wrote:
>>>
>>>> [...] Any idea how we'd get three of each, with each triple starting
>>>> at the same minute?
>>>
>>> There appeared to be a bunch of crond's running for some reason;
>>> stopped all but one.
>>
>> Thanks.  I've killed the binutils-related processes and restarted
>> one manually.
>
> How strange.
> The run I just started via "bash -x ~/bin/mirror-sw binutils" is now
> showing up in ps auxww output as three different processes:
>
>     meyering 32694  0.0  0.0  6352 1020 pts/0    S+   16:05   0:00 \
>       bash -x /home/meyering/bin/mirror-sw binutils
>     meyering 32704  0.0  0.0  6352  504 pts/0    S+   16:05   0:00 \
>       bash -x /home/meyering/bin/mirror-sw binutils
>     meyering 32705  0.0  0.0  6352  560 pts/0    S+   16:05   0:00 \
>       bash -x /home/meyering/bin/mirror-sw binutils
>
> How strange.

I suspect it's normal after all, since it's running this:

    filter_stderr()
    {
      # Usage: filter-stderr EGREP_REGEXP 'command'
      regex=$1 cmd=$2
      (exec 3>&1; eval "$cmd" 2>&1 >&3 | grep -E -v "$regex" 1>&2)
    }
    ...
    filter_stderr "$mirror_re" "$mirror_cmd"

and ps is just showing the eval'd subshell and filter-running processes
with the name of the parent.



More information about the Overseers mailing list