Re: login shell?
- From: japhy@xxxxxxxxxxxx (Jeff 'japhy' Pinyan)
- Date: Wed, 27 Jul 2005 12:21:39 -0400 (EDT)
On Jul 27, Bryan R Harris said:
Is there a way to determine in perl whether the current script was run from a login shell or not?
As opposed to what, specifically? I'd say a good place to check is $ENV{SHELL}. If that's defined, chances are it was run from a shell. I would not expect it to be set from a web browser.
-- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart .
- References:
- login shell?
- From: Bryan R Harris
- login shell?
- Prev by Date: Re: Indirect method invocation
- Next by Date: Re: Indirect method invocation
- Previous by thread: login shell?
- Next by thread: Re: login shell?
- Index(es):