Discussion Locked

FTP script question

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm the NetAdmin for a healthcare company. Our doctors and counselors have tapes of dictation delivered to the transcriptionists. The transcriptionist have setup an ftp site so we can now electronically record and transfer the dictations, greatly increasing the turnaround time on clients records. I can write scripts to transfer the files automatically, logging in anonymously, but I cann't seem to figure out how to script the login. Here's what I have to login anonymously:

ftp -i -s:e:test.txt -A 192.168.1.4

-(test.txt)
mput c:\test\*.*
quit

I've looked at the 'user' subcommand on technet, but the description isn't very good.
Thanks in advance,

5 replies

by chris.lewis

How about this:

ftp -i -s:e:test.txt -A 192.168.1.4

-(test.txt)
USER anonymous
mput c:\test\*.*
quit

by natem

ftp -i -s:e:test.txt -A 192.168.1.4
The -A in this allows an anonymous login. I've tried this solution but it didn't work. It seems that the first script attempts to make a connection without authentication. That fails and then the commands in test.txt fails, since it's not connected. The user account is 'test' with the same for a password. I've tried 'ftp -i -s:e:test.txt USER test test 192.168.1.4' but that didn't work either.

by chris.lewis

OK, this was wacky...

ftp -i -s:e:test.txt 192.168.0.1 (NO -A)

Test.txt is between the lines
-----------------
Anonymous
password
mput c:\test\*.*
quit
-----------------

OR

use this as test.txt

-----------------

x USER ANONYMOUS Password
mput c:\test\*.*
quit
-----------------

This discussion is closed to new replies.