Re: How to find your shell

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

 



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@xxxxxxxxx
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@xxxxxxxxx

Scali - www.scali.com
High Performance Clustering
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux