how do I tell inside .cshrc if I'm a login shell?
    Kishore Seshadri 
    kseshadr at quasar.intel.com
       
    Sat Aug  4 08:51:11 AEST 1990
    
    
  
echo $$ gives you the pid of the current shell.
ps `echo $$` | tail -1 | awk '{print $5}' on my Sun system gives me the
name of the shell I'm running. If it has a '-' before the name it usually
indicates a login shell.
Kishore Seshadri
----------------------------------------------------------------------------
Kishore Seshadri <kseshadr at mipos3.intel.com> or <..!intelca!mipos3!kseshadr>
"The nice thing about standards is that you have so many to choose from."
    
    
More information about the Comp.unix.questions
mailing list