Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> offtopic - unix command

offtopic - unix command

From: Bill Becker <beckerb_at_mfldclin.edu>
Date: Thu, 16 May 2002 07:23:32 -0800
Message-ID: <F001.00462467.20020516072332@fatcity.com>


Hello,

Apologies for the slightly off-topic listing, but I know there are several unix command gurus out there. (Bambi?)

Oracle 8.1.6 on Solaris 2.7.

I am trying to execute an "rsh" command against another unix server; the actual command is

rsh pnas1 chkpntmk oradata ckpt1

if [ "$?" != "0" ]; then...

pnas1 is name of other server; chkpntmk is command, rest are args.

As you can see, I am checking the $? parameter to test for success/failure of the command. However, I think this is the return code for the rsh command, not the chkptmk command which is executed on the other server. When the chkpnt command fails, I still receive a "0" indicating success, because rsh executed OK.

Is there a way to check for the success/failure of the actual remote command when using rsh?

Thnaks to any responders.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Bill Becker
  INET: beckerb_at_mfldclin.edu

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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). Received on Thu May 16 2002 - 10:23:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US