From owner-freebsd-questions Mon Jan 21 19:40: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id BABB837B404 for ; Mon, 21 Jan 2002 19:39:59 -0800 (PST) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.6/8.11.4) with ESMTP id g0M3du821086; Mon, 21 Jan 2002 20:39:56 -0700 (MST) Message-Id: <200201220339.g0M3du821086@fedde.littleton.co.us> To: jacks@sage-american.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Perl5 Script Debug Help In-Reply-To: <3.0.5.32.20020121212823.01831ca0@mail.sage-american.com> From: Chris Fedde Date: Mon, 21 Jan 2002 20:39:56 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 21 Jan 2002 21:28:23 -0600 jacks@sage-american.com wrote: +------------------ | I have a script that under BSDi does a neat summary of users. I wonder if | anyone will take a look to see how this script may be adapted to run on | FBSD 4.4-stable. It doesn't get very far & dies at line 4 for starters, | which is: | my($pwdfile) = (getpwuid($>))[7] . '/etc/passwd'; +------------------ After changing the line above to my($pwdfile) = '/etc/passwd'; the script wored fine for me. What error message is being generated? -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message