LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 12-28-2005, 08:30 PM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
FTP script


I have been trying to run a ftp btach script in windows
I am using the following synthax

Code:
open ftp.myserver.com
myUserName
MyPassword
cd public_html
dir
lcd desktop
get file.php
bye
but I always get a Authentication failed error, can anyone tell me the reason for this ?
The same password and username are working fine If a use a FTP client.
Thanks
 
Old 12-29-2005, 12:19 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
This should help a bit as the Windows implementation of wget can use FTP just like the Linux one:
http://forums.windowsforum.org/index...=19064&hl=wget
 
Old 12-29-2005, 08:17 PM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by scuzzman
This should help a bit as the Windows implementation of wget can use FTP just like the Linux one:
http://forums.windowsforum.org/index...=19064&hl=wget
Thanks but this does not solve my problem
 
Old 12-29-2005, 11:06 PM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Did you try it? It should work exactly as you need.
 
Old 12-29-2005, 11:27 PM   #5
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
Basically I want to know if there is any problem with the command syntax that I am using ?
as according to this http://support.microsoft.com/?kbid=96269 MS article the script should work flawlessly
 
Old 12-30-2005, 01:22 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Ok - I just realized what you were doing, and you're missing only one line. The proper script should be:
Code:
open ftp.myserver.com
user
myUserName
MyPassword
cd public_html
dir
lcd desktop
get file.php
bye
Note the missing 'user' line - that must be there.
 
Old 12-30-2005, 01:27 AM   #7
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
I had tried it with the user line , it does not make any difference .

( Basically you need the 'user ' part if you have automatic login disabled at he remote host )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Help: Perl FTP Script Using NET::FTP xboxter Programming 8 05-16-2005 06:57 PM
Ftp script scialom Linux - Software 2 05-04-2004 03:03 PM
FTP script Veteq Programming 3 04-21-2004 12:32 PM
ftp script dlm4444 Linux - Networking 5 02-10-2004 11:41 PM
FTP Script (Automating) noodle123 Linux - General 2 10-16-2002 08:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration