Re: Pass Return Code to Shell

From: Gerard H. Pille <ghp_at_infosoft.be>
Date: 1996/04/02
Message-ID: <4js0al$eup_at_news.Belgium.EU.net>#1/1


In article <4jrokg$2jl_at_news.dca.net>, Ed Jennings (jennings_at_dca.net) says...
!>
!>I'm running SQL scripts within a Kourne Shell script. If the
!>SQL encounters an error, I want the return code to be propagated
!>out to the shell return code ($?). Does anyone know how to do this??
!>
!>Ed

Hello Ed,

Would that be Korn or Bourne?

Anyway, I thought you could 'return' or 'exit' with a value. Did you try one of these?

-- 
Kind reGards
     \ /   |
      X    |
     / \   s
     Gerard
Received on Tue Apr 02 1996 - 00:00:00 CEST

Original text of this message