Discussion Locked

FTP SCRIPT

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
IS there any way to have one script connect and send a file to 2 different servers.

5 replies

by stillatit

If you are in Unix, yes. Include "close" command for one server, followed by an "open" command for the next server:

ftp -n < mycommandfile

where the contents of mycommandfile are:
open firstserver.foo.com
user me
pass mypass
put foo.bar
close
open nextserver.foo.com
user me
pass mypass
put foo.bar
quit

Note that you use the -n flag on the ftp command to eliminate automatic login so that this will work

by kschang

Which FTP program? What script?

If you're talking about the command prompt FTP.EXE that comes with Windows, absolutely, just have it CLOSE the connection and OPEN another one.

Otherwise, you'll have to tell us what you mean exactly. We're ITguys, not mindreaders.

--KC

by doe

I'm using transoft's performer 3.0 it took a little more than just a disconnect and a reconnect i had to put a 120sec timeout in between. thanks for the direction.

This discussion is closed to new replies.