gabriel rosenkoetter on 22 Jan 2009 13:28:37 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] What is my current shell?


At 2009-01-22 16:09 -0500, TuskenTower <tuskentower@gmail.com> wrote:
> On Thu, Jan 22, 2009 at 4:05 PM, Eric <eric@lucii.org> wrote:
> > ps a | grep "^ *$$" | grep -v grep | awk '{print $5}'
> The line you sent me choke on Slowaris. :(

That's because it's using BSD-stile ps(1) args. You probably want
something like ps -f, but check the man page for the position of the
process name.

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpr3yBY3Ts7x.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug