aspose file tools*
The moose likes Linux / UNIX and the fly likes Available shells on SunOs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Available shells on SunOs" Watch "Available shells on SunOs" New topic
Author

Available shells on SunOs

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1527
I suspect I am on a SunOne box, how do I see available shells on this machine? Can I run a shell script even in case I don't have a shell?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16068
    
  21

I think that the "uname -a" command will tell you the basics of what OS you're running. Every Solaris system I ever worked with had me preset for bash, although it was an older and less-capable version of bash than what Linux uses.

probably the easiest way to tell is simply to search the system binary directories like so: "ls /bin/*sh", which would find things like bash, sh, ash, csh, ksh, and so forth. And doubtless a few false positives as well. Beyond that, you'd probably have to rummage through the system packages list.


Customer surveys are for companies who didn't pay proper attention to begin with.
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1527
Tim Holloway wrote:
probably the easiest way to tell is simply to search the system binary directories like so: "ls /bin/*sh", which would find things like bash, sh, ash, csh, ksh, and so forth.


Found some. Thanks again.!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Available shells on SunOs