From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,ef95298cda7ca028,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: "ccwallin" Newsgroups: comp.unix.tru64 Subject: how to tell if a script is running in a login shell Date: 2 Feb 2005 12:17:19 -0800 Organization: http://groups.google.com Message-ID: <1107375439.322115.323990@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 216.60.25.6 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1107375444 9131 127.0.0.1 (2 Feb 2005 20:17:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 Feb 2005 20:17:24 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=216.60.25.6; posting-account=uw7opQwAAAAw24_DTKj7FAsGNS57bEW_ Xref: g2news1.google.com comp.unix.tru64:574 How can one tell if a script is running in a login shell(-sh). And if so what is the name of the script. What do the following mean in a ps listing - -sh means login shell -sh (sh) means ? [sh] means ? Tom Wallin