Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2011 13:38:34 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Mark Saad <nonesuch@longcount.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: What is going on with ash / sh
Message-ID:  <CAGH67wTBhA5Ux6BumKzDqNcv5rd%2Bdw44YYgERW0CVoictQsOFg@mail.gmail.com>
In-Reply-To: <CAGH67wSkxCVqjzhfe4rP_sdbtWa7uB%2BpxX0DT%2BRCMzpLcu4mjQ@mail.gmail.com>
References:  <CAMXt9NYcO4JsZRUr_TVzoE08F7hyED4EUM5RBH2w6gC5_NSe5Q@mail.gmail.com> <CAGH67wSkxCVqjzhfe4rP_sdbtWa7uB%2BpxX0DT%2BRCMzpLcu4mjQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 2, 2011 at 1:37 PM, Garrett Cooper <yanegomi@gmail.com> wrote:
> On Wed, Nov 2, 2011 at 1:28 PM, Mark Saad <nonesuch@longcount.org> wrote:
>> Hackers
>> =A0What is going on here, if I run the following shell script, what is
>> the expected output . The script is named xxx
>>
>> #!/bin/sh
>> ps -ax | grep -v grep | grep xxx
>>
>> Here is what I see
>>
>>
>> =A0# sh xxx
>> 88318 =A0p0 =A0S+ =A0 =A0 0:00.00 sh xxx
>> 88320 =A0p0 =A0R+ =A0 =A0 0:00.00 sh xxx
>> 88321 =A0p0 =A0R+ =A0 =A0 0:00.00 sh xxx
>
> =A0 =A0No idea. jobs isn't a shell builtin so you can't verify what jobs
> are currently running via the shell if there are any. What version of
> FreeBSD are you using and what do your $ENV and .profile files look
> like?

Also, psauxww | grep -v grep | grep xxx would help. I would wait for a
reply from Jilles, because it might be creating a subshell for each
instance.
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wTBhA5Ux6BumKzDqNcv5rd%2Bdw44YYgERW0CVoictQsOFg>