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 > ftp error handling

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-08-04, 13:27
delgah delgah is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
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
Reply With Quote
  #2 (permalink)  
Old 10-08-04, 20:39
vgersh99 vgersh99 is offline
Registered User
 
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> |
+-----------------------+
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