Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Nov 2011 11:28:19 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: What is going on with ash / sh
Message-ID:  <CAMXt9NbwY6qLeS2dyQgwTw%2BpmrA4izVDkJp77MY8ZzcjP3sUwg@mail.gmail.com>
In-Reply-To: <4EB1A990.7080001@FreeBSD.org>
References:  <CAMXt9NYcO4JsZRUr_TVzoE08F7hyED4EUM5RBH2w6gC5_NSe5Q@mail.gmail.com> <4EB1A990.7080001@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 2, 2011 at 4:35 PM, Doug Barton <dougb@freebsd.org> wrote:
> On 11/02/2011 13:28, Mark Saad wrote:
>> Hackers
>> =C2=A0What is going on here, if I run the following shell script, what i=
s
>> the expected output . The script is named xxx
>>
>> #!/bin/sh
>> ps -ax | grep -v grep | grep xxx
>>
>> Here is what I see
>>
>>
>> =C2=A0# sh xxx
>> 88318 =C2=A0p0 =C2=A0S+ =C2=A0 =C2=A0 0:00.00 sh xxx
>> 88320 =C2=A0p0 =C2=A0R+ =C2=A0 =C2=A0 0:00.00 sh xxx
>> 88321 =C2=A0p0 =C2=A0R+ =C2=A0 =C2=A0 0:00.00 sh xxx
>>
>>
>> Can someone explain this ?
>
> I only see one. What happens if you run this on the command line?
>
>
if you run it from the command line you only see on process.

>
> --
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"We could put the =
whole Internet into a book."
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"Too practical."
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Breadth of IT experience, and depth of knowled=
ge in the DNS.
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Yours for the right price. =C2=A0:) =C2=A0http=
://SupersetSolutions.com/
>
>



--=20
mark saad | nonesuch@longcount.org



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