The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
identify the child shell arpit_narula SUN Solaris 1 10-29-2007 09:51 AM
how to display the shell type yipster UNIX for Dummies Questions & Answers 3 11-04-2006 06:38 PM
Identify type of file DebianJ Shell Programming and Scripting 1 11-17-2005 08:55 AM
Help on Simple shell that look for a file type Peterh Shell Programming and Scripting 5 10-06-2003 09:38 PM
External comands in C? merlin High Level Programming 2 01-07-2003 10:15 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2006
Registered User
 

Join Date: Sep 2005
Posts: 25
how to identify the type of shell using comands..

Dear friends,
please tell me how to identify the type of the shell (whether cShell, kshell or anything else)
please tell me the command.

waiting for ur reply....

regards,
swamymns
Reply With Quote
Forum Sponsor
  #2  
Old 01-17-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
$SHELL holds the value you are looking for.

Yet another way would be to lookup the info in /etc/passwd.

Last edited by vino; 01-17-2006 at 09:39 PM. Reason: typo...
Reply With Quote
  #3  
Old 01-17-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
another way,

a simple ps command would get u the listing.

shell that you use currently also would be included.

Ex: let's say your default shell is /bin/ksh

and in .profile at the end; loaded another shell /bin/bash
ps command would give the listing of all shells spawned and the current shell you are in.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0