The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-06-2008
solaix14 solaix14 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 48
help using case-statement for Korn shell

Hello experts,
1) I have two scripts (one for Solaris and one for AIX), now I want to put these two scripts into a single one.
2) Now I want to run this script (combined) from another script to:
a) select if it is a solaris box or AIX
b) run the solaris part of script from the combined script if the box
comes out to be solaris or vice versa using case-statement.

thanks in advance.