Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 15: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, 16:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 2,227
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
__________________
===
Nick Ivanov
Freelance database consultant
www.datori.org
Reply With Quote
  #3 (permalink)  
Old 09-13-07, 16: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

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