If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > How To Capture Status of FTP via e-mail?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-13-07, 14:20
ypal ypal is offline
Registered User
 
Join Date: Apr 2007
Location: Big City
Posts: 62
How To Capture Status of FTP via e-mail?

Hello,

I have an FTP process that transfer files from one server to the other.
From time to time that FTP process is failing due to connection issue or else...
Is there are a scrip that I may insert to the process which will send out a message to particular e-mail acct stating that FTP process failed or completed successfully ?


Thank you so much.
Y


Reply With Quote
  #2 (permalink)  
Old 09-13-07, 15:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,454
If your ftp process returns an error code, you can do simply
Code:
ftp_process || cat ftp.log | mail -s "ftp process failed" you@acme.com
Reply With Quote
  #3 (permalink)  
Old 09-13-07, 15:56
ypal ypal is offline
Registered User
 
Join Date: Apr 2007
Location: Big City
Posts: 62
Thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On