Re: How to find your shell
- From: Terje Eggestad <terje eggestad iname com>
- To: Shiraz Baig <shiraz_baig yahoo com>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: How to find your shell
- Date: Sun, 01 May 2005 20:20:18 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]