From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 3 15:28:20 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB365106568B for ; Thu, 3 Nov 2011 15:28:20 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 835E08FC18 for ; Thu, 3 Nov 2011 15:28:20 +0000 (UTC) Received: by faar19 with SMTP id r19so2471280faa.13 for ; Thu, 03 Nov 2011 08:28:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.7.14 with SMTP id b14mr17727661fab.10.1320334099500; Thu, 03 Nov 2011 08:28:19 -0700 (PDT) Received: by 10.223.96.133 with HTTP; Thu, 3 Nov 2011 08:28:19 -0700 (PDT) X-Originating-IP: [68.239.250.164] In-Reply-To: <4EB1A990.7080001@FreeBSD.org> References: <4EB1A990.7080001@FreeBSD.org> Date: Thu, 3 Nov 2011 11:28:19 -0400 Message-ID: From: Mark Saad To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: What is going on with ash / sh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2011 15:28:21 -0000 On Wed, Nov 2, 2011 at 4:35 PM, Doug Barton 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