Same script for Solaris,Linux,AX

Hi ,

I have a script which is running in Solaris.
But my requirement got changed...this script has to run in all OS like Linux,AIX.
I tried it but most of the command is not found in all these OS.
Is there any way so that i can just modify some part and run it in all OS.

Post script.

Put a general PATH at the beginng of the script

export PATH
PATH=/usr/xpg4/bin:/bin:/usr/bin:/usr/sbin:/sbin

so "command" is found in any of these locations.

Your question is too vague. Without seeing your script there is nothing this forum can do to help you.