Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Location
    Big City
    Posts
    62

    Unanswered: 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



  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    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
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Apr 2007
    Location
    Big City
    Posts
    62
    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •