We use a case statement to setup various utilities such as nawk/gawk, mailx/mail, which gets selected depends on platform (uname -s). This makes our scripts portable across various Unix platforms as well as Linux.
Gerardo -----Original Message----- Sent: Monday, August 04, 2003 11:24 AM To: Multiple recipients of list ORACLE-L The Linux cognoscenti, in all their infinite wisdom, have decided you should no longer be using nawk; you should be using gawk instead. And you can no longer expect things that were in /usr/bin to be there henceforth. Again, in their infinite wisdom, they have decided that there is a more appropriate location for the various and sundry utilities; so they took the liberty of moving things around. They apparently ignored by suggestion that up their collective ass is the best place. -----Original Message----- Sent: Monday, August 04, 2003 9:40 AM To: Multiple recipients of list ORACLE-L I've got the following script that works fine on most flavours of unix apart from Linux...I think I must be going mad as I can't see where the problem is I get the following error when i invoke it..... oracle ukwsv71 > usedb uktst233 bash: nawk: command not found bash: nawk: command not found bash: nawk: command not found bash: nawk: command not found bash: nawk: command not found bash: nawk: command not found bash: nawk: command not found ORACLE_HOME = [/oracle/app/oracle] ? -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephen Lee INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Molina, Gerardo INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).