The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Start a Shell as Login shell instead of ordinary shell Sivaswami Linux 3 07-01-2008 02:52 PM
How to get bash to be the login shell? amheck SUN Solaris 8 03-10-2006 05:39 PM
cannot login after changing login shell hardesh HP-UX 4 09-14-2005 01:21 AM
Standard login shell Fwurm UNIX for Dummies Questions & Answers 4 11-05-2001 11:43 AM
Unable to get a login shell pradeepks UNIX for Dummies Questions & Answers 2 01-07-2001 11:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-30-2009
gurubarancse gurubarancse is offline
Registered User
  
 

Join Date: Mar 2009
Location: Kovai & Erode India
Posts: 6
Login Shell

Hi all

I would like to know what my current shell is? i.e The shell at the time of login.

I knw the below commands

echo $SHELL


but this is not doing the job..


Any other way to find it?

What is the below line doin?

ps -ef | grep $PPID

Will this fetchn the corret shell the user is in?
  #2 (permalink)  
Old 03-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,576
grep <youraccount> /etc/passwd...
  #3 (permalink)  
Old 03-30-2009
gurubarancse gurubarancse is offline
Registered User
  
 

Join Date: Mar 2009
Location: Kovai & Erode India
Posts: 6
Hi Vbe

Yes, this is possible. But what in case the user is in a ldap directory?
  #4 (permalink)  
Old 03-30-2009
vibhor_agarwali vibhor_agarwali is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 259
Quote:
cho $SHELL
but this is not doing the job..
What does this return?
  #5 (permalink)  
Old 03-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,576
maybe :
Code:
 ps -ef|grep "$$"|grep -ve grep -e ps
  #6 (permalink)  
Old 03-30-2009
radoulov's Avatar
radoulov radoulov is online now Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,910
Code:
ps -p$$
  #7 (permalink)  
Old 03-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,576
Quite right radoulov!
But I was expecting someone coming up with a "killer" sed stuff, not something that easy
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0