Re: How to find your shell



if you're looking for the login shell (or the users default shell) use getpwent(), don't check the /etc/passwd directly.

TJ


On Fri, 2005-04-22 at 06:45 -0700, Shiraz Baig wrote:
There are two three methods.
One is to check the environments. In that one item
will be the shell.

Second is to cat /etc/passwd and see the shell that
has been allotted to you. 

The third is run a command, which does not exist. For
example "abc". it will give an error and also the name
of the shell.
bye
shiraz

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
-- 

Terje Eggestad
Senior Software Engineer
dir. +47 22 62 89 61
mob. +47 975 31 57
fax. +47 22 62 89 51
terje eggestad scali com

Scali - www.scali.com
High Performance Clustering


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]