Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Batch file!

Status
Not open for further replies.

Antzz

Programmer
Jan 17, 2001
298
US
Hey Folks,
I am facing a weird problem with a simple FTP batch file.

The contents are :

open machinename
username
password

I get an error after the password line which says "User username cannot log in. Login failed".

There seems to be no issues with the user name since I can log in normally(without runnin g the batch file).
Any wisdom here will be great.

Thanks

RK
 
If the username and password are correct, then I'm afraid site policies prevent anybody discussing this further.

John
 
Not sure if this will help but here goes.

My FTP batch echos commands to a data file. From there, I execute the ftp running that data file.

***********************************
echo open %site% > data.dat
echo user %user% %passw% %acctIfNeeded% >> data.dat
echo binary >> data.dat
echo get %theirFile% >> data.dat
echo put %myFile% >> data.dat
echo bye >> data.dat

ftp -nis:data.dat >> ftp.log
***********************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top