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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Slightly OT: Capturing a failed status of an ftp process

Re: Slightly OT: Capturing a failed status of an ftp process

From: Terry Ball <terry_ball_at_csgsystems.com>
Date: Tue, 03 Apr 2001 12:35:13 -0700
Message-ID: <F001.002E03F1.20010403122324@fatcity.com>

I tried this, but the exit from the ftp is successful, so the return code ends up being successful also.

Terry

Gene Sais wrote:

> i find the easiest thing to do is put the ftp code in a function within the shell
>script. call the function from the shell script and check the return code ($?) or
>you could output to a file and grep the file for errors. got to play with it to see
>what works best for you.
>
> >>> RROGERS_at_galottery.org 04/03/01 02:12PM >>>
> Terry,
> If I remember correctly the ftp supplies a return code. You could capture the return
>code and have a second script act accordingly on the return code. I think code 220 is
>successfull.
> ROR mª¿ªm
>
> >>> terry_ball_at_csgsystems.com 04/03/01 01:30PM >>>
> I think I've seen an answer to this, but I never needed it before. If
> anyone can help, I would greatly appreciate it.
>
> We are trying to ftp files from one server to another. (Archive logs
> for Oracle). We want to be able to capture the status when the ftp
> fails, so that we can notify the DBAs to check the process out. This is
> all being done within a shell script that compress the log file first,
> then calls another script to do the actual ftp. But when the child
> script executes, it returns a successful status to the parent script. I
> don't know any way to tell the script that is doing the ftp to send the
> message, because any non-ftp command within that script fails. (Of
> course, that could just be because I don't know how to do what I want to
> do).
>
> If anybody has invented this wheel before, or has any tips on where to
> look for more info on how to do what I need to do, please let me know.
>
> TIA,
>
> Terry
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Terry Ball
> INET: terry_ball_at_csgsystems.com
>
> 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).
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Ron Rogers
> INET: RROGERS_at_galottery.org
>
> 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).
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gene Sais
> INET: Gsais_at_co.palm-beach.fl.us
>
> 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Terry Ball
  INET: terry_ball_at_csgsystems.com

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 Tue Apr 03 2001 - 14:35:13 CDT

Original text of this message

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