automatic FTP failed


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting automatic FTP failed
# 1  
Old 09-02-2010
Data automatic FTP failed

I have automated ftp for different scripts. every script uses different login and passwords for different server. it reads the username and password from netrc.

there is 1 particular script that is failing. this script is failing in FTP step. i have checked the logs it says login failed. but when i try to do the manual logging to the same server with the username and password provided in the .netrc file. its successful.

my question here is.. is it possible to restrict automatic ftp from the destination server by some configuration. when i am able to do manual ftp then why its failing in automatic ftp??

any ideas or suggestions anything will be a lot of help. thanks a lot in advance....Smilie
# 2  
Old 09-02-2010
It shouldn't be able to tell the difference. Are there any backslashes, odd or non-ASCII characters in the username/password that could be causing confusion?
# 3  
Old 09-02-2010
are you running the scripts as yourself or as root ?
# 4  
Old 09-02-2010
try
Code:
# chmod 600 .netrc

# 5  
Old 09-03-2010
as ygemici said. give only read and write permission. that i have already checked. .netrc file has 600 permission.

as riegersteve - i m running the script as a root.

as corona said - the password has one (_) underscore in it. will that makes a difference...

i am going to change the password to something normal which will not contain backslashes, odd or non-ASCII characters...

---------- Post updated at 02:07 AM ---------- Previous update was at 02:07 AM ----------

thanks a lot for a quick reply. i will update it once i get the final results after changing the passwords.
# 6  
Old 09-03-2010
Passwords longer than 8 characters also give trouble in ftp.


ftp looks for .netrc as $HOME/.netrc . Therefore the value of $HOME is important.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP failed

Hi All, We are using the following step to place a file in server using FTP STEP_EXECUTE STEP090 /usr/pjc/bin/FTP -i DATASET FTPIN $sic/ctl/ftpsic.ctl DISP=OLD,KEEP,KEEP STEP_END If we run this step we are getting the error. ftp> open arg.mnd.appsc.com Connected to arg.mnd.appsc.com.... (4 Replies)
Discussion started by: ajaykumarkona
4 Replies

2. Shell Programming and Scripting

Automatic FTP-Download | not files older then x days

Hey Guys, i need to download files from a ftp-server that not older than $VAR (x) days eg for seven days ./script 7 or two weeks ./script 14 all files from the last 14 days will download but how i can explain "ftp" this? sorry for my strange english :/ (2 Replies)
Discussion started by: tetex
2 Replies

3. Shell Programming and Scripting

Automatic FTP

Hi I am looking for automatic FTP script from UNIX to UNIX servers. I have two problems that anyone may help: 1- The directory where the files have to be FTPed is varied, where it is identified by the date of today (YYYYMMDD) 2- the files come every 15 minutes and named by the time with form... (2 Replies)
Discussion started by: akhadoor
2 Replies

4. AIX

.netrc and Automatic ftp problem

Guy's We have two AIX servers Server1 and Server2 and we have created user1 in Server1 and Server2 ... and .netrc file was confiured under /home/user1 with the below line machine server2 login user1 password abc1234567 -rw------- 1 user1 staff 159 Sep 28 2004 .netrc ... (7 Replies)
Discussion started by: ITHelper
7 Replies

5. SCO

Automatic FTP script

We are using SCO OS 5.05 server and we are doing a manual ftp to another SCO OS 5.05 server to backup our database. We are using the Bourne shell. We would like to automate the ftp backup of our database instead of doing it manually. It would be nice to run a script. Also would there be anyway... (4 Replies)
Discussion started by: texastig
4 Replies

6. Solaris

FTP login failed.

Hi guys, Can you please help me. I have SUN V100 server running solaris 8. I also have a Redhat Linux 6.2 machine and a windows XP machine on the network. I'm trying to copy files from the Linux and XP machines to the V100 server. When I try to ftp to the solaris machine, I'm challenged... (2 Replies)
Discussion started by: Stin
2 Replies

7. Shell Programming and Scripting

Automatic FTP Script from windows to unix machine

Hi i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files Thanks (2 Replies)
Discussion started by: bmkreddy
2 Replies

8. Shell Programming and Scripting

Is it possible..when ftp session disconnect and it can automatic run again?

Hi, Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)? Please help!!!! (1 Reply)
Discussion started by: happyv
1 Replies

9. Shell Programming and Scripting

Automatic ftp job

I'm slowly (very slowly) learning csh and the UNIX underpinnings of Mac OS X so please bear with me. I want to be able to ftp a file to my personal webspace at work. I can do this by manually going in and doing ftp host.domain.com user: password: cd /folder put myfile etc.. I'd like... (4 Replies)
Discussion started by: DumDum
4 Replies

10. UNIX for Advanced & Expert Users

Automatic FTP

Hi, We have a requirement to transfer(FTP) files created in a particular directory (In Solaris) to NT machine. Also this process neeeds to be automated. I belive a command MAIL in UNIX could be used to find new files created in a directory, but this just sends the file list to the logged user.... (5 Replies)
Discussion started by: shyamrk
5 Replies
Login or Register to Ask a Question