Re: FTP 530 Login Incorrect



this works for me

ftp -s:example.txt ftphostname

and the contents of example.txt

username
password
ascii
cd /destdir
send test.txt
quit

i think just leave out 'user' line from yours

hth

philip ashley

"Chip Anderson" <ChipAnderson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:0624D87E-1B4C-41C7-81CF-03E8AE4F0950@xxxxxxxxxxxxxxxx
I am attempting to ftp some files from a Windows XP SP2 client to a Sun OS
5.6 server by calling an ftp script from a command shell batch file. I have
done this before successfully, but do not seem to be able to do so now. The
host is defined in my local hosts file and I do not have any trouble
connecting and using commands from the ftp prompt. I have tried several
variations of the following (first the calling batch file line, then the
script contents).


ftp -s:example.ftp host

user
username
password
cd /unixdestdir
ascii
send example.txt
quit

I invariably get

331 Password required for username.
530 Login incorrect.

Does anyone know what I am doing wrong, or what other impediments might exist?

.



Relevant Pages

  • Re: Disable auto login of network share?
    ... username and password. ... the username and password as soon as the share window is closed? ... it looks like it needs to be a batch file. ... Remember - the other two commands are not required after you have run them ...
    (microsoft.public.windowsxp.general)
  • Re: open password protected access database
    ... If MDB has a database password ... You must not pass username and password to a password-protected ... is not hard coded in the script where it can be compromised. ... or batch file is just going to send the password ...
    (microsoft.public.scripting.vbscript)
  • Re: File access on remote workstation
    ... > Replace the items in braces with the correct values and note spaces ... The username is always in the login aperature and anyone wanting ... >> username/password on the target system and since I am using a batch file ...
    (microsoft.public.win2000.networking)
  • Re: Group policy not always working for one user
    ... Login only 3 of the 8 days it's in use. ... I tried gpresult /user [username] but that doesn't seem to work... ... I have two batch file linked to all authenticated users to track log on ...
    (microsoft.public.windows.server.sbs)
  • Re: FTP Script from HP
    ... from PC to HP3000 to stream a job, I would like to use the Site command to start windows batch file or program within HP FTP Script file... ... I want HP to be on the driver's seat and transfer the file and than issue a command from the script file to start a program or batch file. ... If you use PAUSE, even with just a one-second interval, it could take next to no CPU time while it runs. ...
    (comp.sys.hp.mpe)