The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error FTP transfer file cuongpc HP-UX 3 02-28-2008 10:19 AM
scp error code after successful transfer - $? appears incorrect badtea Shell Programming and Scripting 5 06-21-2007 07:27 PM
ftp transfer Remi SUN Solaris 3 01-24-2007 03:21 PM
Transfer passwords dlkox UNIX for Dummies Questions & Answers 1 01-23-2002 03:51 PM
How do i transfer files phsoft UNIX for Advanced & Expert Users 4 09-19-2001 02:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2007
Registered User
 

Join Date: Sep 2007
Posts: 12
FTP Transfer error

Hi !
I created a similar script as shown below to automate an FTP transfer and encountered errors. Appreciate any advice to resolve this issue.


The script:

#!/usr/bin/ksh
ftp 'IP ADD' << cmd
user 'user' 'pass'
lcd /home/data
get 'FileA' FileB
quit
cmd



Connected to 'IP_ADD'.
220 Connection will close if idle for more than 5 minutes.
331 Send password please.
530 PASS command failed
Login failed.

Local directory now /home/data
200 Representation type is Image
200 Port request OK.
530 Not logged in.
221 Quit command received. Goodbye.
Reply With Quote
Forum Sponsor
  #2  
Old 11-06-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
http://www.unix.com/shell-programmin...#post302144031

It is good to search/read other posts and see if other similar problems have already been addressed.
Reply With Quote
  #3  
Old 11-06-2007
Registered User
 

Join Date: Sep 2007
Posts: 12
Hi,

There is no ./netrc file to be found in my home folder.

Is there any other way to automate the FTP...

Thanks
Cosec
Reply With Quote
  #4  
Old 11-06-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by cosec View Post
There is no ./netrc file to be found in my home folder.
Then create one.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:09 AM.


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