[SunHELP] Shell Problem

Ravi Katti sunhelp at sunhelp.org
Mon Apr 16 19:55:06 CDT 2001


I think just by executing ps command you will get to know the shell used 
currently by the user. Also you may try finger username|grep -i shell. Also 
the syntax of bourne shell is understood by most of the other shells.


----Original Message Follows----
From: Naresh Narang <nareshnarang at 123india.com>
Reply-To: sunhelp at sunhelp.org
To: sunhelp at sunhelp.org
Subject: [SunHELP] Shell Problem
Date: 16 Apr 2001 17:23:31 -0700

Hi

   I want to set up env. variables based upon the shell a user is running, 
so in order to find what shell a user is using, I have to run a script in a 
Shell say /bin/sh. If I run it using #!/bin/sh to find user's shell, every 
shell behaves differently or if I use other methods to find shell then how 
do I use that shell to set env variable that can be read by user's shell and 
other statements are ignored.

Basically I want a general script that can set env variables based on user's 
shell syntex.

Any help is appreciated.

Thanks
Naresh

-- Naresh
______________________________________________________
123India.com - India's Premier Portal
Get your Free Email Account at http://www.123india.com


_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




More information about the SunHELP mailing list