Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Unanswered: ftp error handling

    Hi,
    I need to know if the put ftp command completed successfully or not. How can I achieve that.

    I am using the following script but it doesn't log any error:
    # \$Id\$
    cd /u01/app/projcopy/IPRTST/R4/r4workdir/WM124
    ncftp -u subscriber_admin -p ip41tsts -P 2100 IPRDELL02.us.oracle.com <<EOT >/u01/app/projcopy/IPRTST/R4/r4workdir/temp/WM125outfile
    binary
    cd "AllWorkspaces/LAD Test Agilisys A"
    put -z "ID4058901NPRT-_initial_connect'io"n_data_.DOC" "ID4058901NPRT-_initial_connect'io"n_data_.DOC"
    EOT

    Regards
    Harvey

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    don't know about ncftp, but woth Sun stock ftp client you have to parse the output of the here-in document.
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

Posting Permissions

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