Hi ,
I need to run a script on different flavors, namely
1) Linux
2) AIX
3) Solaris
4) HP-UX
Almost the entire script is the same except at a few places where commands specific to that OS are to be run. Is it possible to have a single script that runs on all the platforms?
Sth like this -
if(solaris)
{
execute this block of code
{
elif(hp-ux)
{
execute this block of code
}
How do i perform OS checking ?? Looking for inputs on this.
Thanks,
Praveen