We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,708 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Trap FTP success or failure

Hi I have written the below code for ftp transfer. can u please help me how to trap whether it is successful or not.

ftp -n `awk '$1 ~ /db_server_IP/ { print $3 }' $CONFIG_FILE` <<END
quote USER `awk '$1 ~ /db_user/ { print $3 }' $CONFIG_FILE`
quote PASS `awk '$1 ~ /db_password/ { print $3 }' $CONFIG_FILE`
`awk '$1 ~ /db_file_mode/ { print $3 }' $CONFIG_FILE`
cd `awk '$1 ~ /db_file_path/ { print $3 }' $CONFIG_FILE`
get `awk '$1 ~ /db_file_name/ { print $3 }' $CONFIG_FILE`.tar.gz
quit
END
1
Contributor
0
Replies
1
View
Question
Answered
nikita.
Light Poster
35 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0540 seconds using 2.65MB