[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invoked from startup scripts vs. login shell
From: |
Paul Jarc |
Subject: |
Re: Invoked from startup scripts vs. login shell |
Date: |
Mon, 05 Nov 2001 12:43:48 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
Bob <BHockney@ix.netcom.com> wrote:
> Is there a way I can determine within a bash shell script whether or
> not it was invoked from as part of system startup?
There's no perfectly reliable way. You might try checking whether you
have a controlling terminal, or whether certain environment variables
are set, which are typically set only for login sessions.
This belongs on comp.unix.shell. Followup-To set.
paul