The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to catch the exception on SFTP? younggun Shell Programming and Scripting 2 03-19-2008 11:43 PM
How to catch the output rpraharaj Shell Programming and Scripting 4 02-29-2008 06:47 AM
For loop statement - catch error lumdev Shell Programming and Scripting 4 09-20-2007 04:50 AM
How to catch the rscyn errors? redlotus72 UNIX for Dummies Questions & Answers 3 03-17-2005 04:21 PM
how to catch information in a different environment ..... Nicol UNIX for Advanced & Expert Users 10 04-09-2004 09:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-07-2007
Registered User
 

Join Date: Nov 2005
Posts: 10
Question How to catch the exception

Dear friends,

I am transferring some files to a windows system from Unix m/c thru FTP Script given below.
echo "open $host
quote USER $userid
quote PASS $pwd
$verbose
$type
cd $dir
bin
put $file
close
quit"|$ftp -n

While transferring, I am getting "Connection refused." I have scheduled this script in crontab and writing logs to a file.

I want to check whether the files are transferred successfully or not by writing the log.

Could any one help me on this.

Regards,
Vijayakumar.PC
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0