Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Slightly OT: Capturing a failed status of an ftp process
Try using expect to script the ftp session.
-----Original Message-----
Sent: Tuesday, April 03, 2001 1:31 PM
To: Multiple recipients of list ORACLE-L
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).
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 - 12:32:10 CDT
![]() |
![]() |