From owner-freebsd-questions Thu Jul 12 12:55:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 06B5A37B403 for ; Thu, 12 Jul 2001 12:55:11 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f6CJrDL20716; Thu, 12 Jul 2001 16:53:14 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Thu, 12 Jul 2001 16:53:13 -0300 (ART) From: Fernando Gleiser To: Ronnie Clark Cc: "'Freebsd-Questions (E-mail)" Subject: Re: login script question In-Reply-To: Message-ID: <20010712164926.P20585-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thu, 12 Jul 2001, Ronnie Clark wrote: > Hello all. I am trying my hand at perl scripting now that I am comfortable > with the FreeBSD OS itself. I wish to write a login script that acknowledges > the use when they log in. But, I need to know two things: > 1. What variable is assigned to the login name? In other words, how does one > tell the script to pull the login name? (i.e in the script $name = "?" ) It is in the ENV hash: $ENV{'USER'} > 2. Where would one put a login script? I looked in /etc, but nothing jumped > out. If you want to run the script when every user logs in, add the call to it in /etc/profile and /etc/csh.login > > Thanks in advance for the help. Hope this helps. Fer > > Thank you, > RC > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message