If you *have* to use MS FTP, the following info comes from their knowledge
base at
http://support.microsoft.com/support/kb/articles/Q96/2/69.ASP
BTW It works!
SUMMARY
FTP (file transfer protocol) is a file transfer utility commonly used with
UNIX systems.
FTP is capable of using scripts (lists of commands from external files). The
following example demonstrates a script that opens a connection to IP
address 11.11.11.11, logs onto the host as a guest with the password guest,
uploads the FILE1 file, and quits:
open 11.11.11.11
guest
guest
put file1
quit
MORE INFORMATION
You must use the -s option for FTP to read this file under Windows NT. If
the previous script was in a file called Test.scr, you could start the
script by typing:
ftp -s:test.scr
You can specify the host name in the command line and then use the script to
process the login. For example, if you use the following command line
ftp -s:test.scr 11.11.11.11
the script file should read as follows:
user guest guest
put file1
quit
However, If the ftp host implements automatic login, this command will not
work. You would turn off automatic login with a -n switch in the command
line. The command line would then read as follows:
ftp -n -s:test.scr 11.11.11.11
Martin Visser
Technology Consultant - Compaq Global Services
Compaq Computer Australia
410 Concord Road
Rhodes, Sydney NSW 2138
Australia
Phone: +61-2-9022-5630
Mobile: +61-411-254-513
Fax:+61-2-9022-7001
Email:[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 4 January 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: [SLUG] Basic ftp script question
Hello all
I want to create a basic ftp script to push /pull some website log files.
I need to get them both from windoze and linux machines on to a central
machine.
I was thinking to create a ftp script to transfer them but I don't know how
to supply the passord for basic ftp ? I can do it for ncftp using
the ftp://username:password@host syntax but I would prefer to use basic
ftp on windoze and push the logs to the other machine.
thanks in advance
Grant Street
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug