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

>>> [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 

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: [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.com
--
Author: Ron Rogers
  INET: [EMAIL PROTECTED]

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: [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).

Reply via email to