Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2006 20:31:26 +0200
From:      Florent Thoumie <flz@FreeBSD.org>
To:        Garance A Drosehn <gad@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org, Rong-En Fan <grafan@gmail.com>, John Baldwin <jhb@FreeBSD.org>
Subject:   Re: tail, tr: not found when booting
Message-ID:  <1144866686.794.10.camel@localhost>
In-Reply-To: <p0623091cc06302dedbf8@[128.113.24.47]>
References:  <6eb82e0604112027q557fa36bw692f147913112997@mail.gmail.com> <200604121041.37870.jhb@freebsd.org> <20060412151816.GE28966@odin.ac.hmc.edu> <1144855989.53943.46.camel@mayday.esat.net> <20060412174630.GC21175@odin.ac.hmc.edu> <p0623091cc06302dedbf8@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 2006-04-12 at 15:20 -0400, Garance A Drosehn wrote:
> >  > >
> >  > > You can't do anything with /usr this early.  This needs
> >  > > to be moved to _find_processes() where it's actually used.
> >  > > I suspect it should also be converted to pure shell code.
> >  > > I think this would work:
> >  > >
> >  > > for ent in `ps -p $$ -o jid`; do
> >>  >	JID=$ent
> >  > > done
> 
> You might want to change this to:
> 
> for ent in `ps -p $$ -o jid=`; do
>      JID=$ent
> done
> 
> (adding '=' on 'jid', to get rid of the column header)

You don't need the loop if you use the '=', as someone told me via
private mail.

-- 
Florent Thoumie
flz@FreeBSD.org
FreeBSD Committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBEPUd+MxEkbVFH3PQRAhISAJ9NbV33OO5TXMZ9ssbpB+uAODSJGwCeK1Rx
SaCOfUNBKopfo9HW3C+w3gw=
=ktkU
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1144866686.794.10.camel>