Hello, I am trying to automate ftp to multiple hosts. I know how to write an ftp script for the ftp session, but I cannot seem to pass a variable to. Jan 05, 2009 If you are someone who likes to upload your files to multiple file-hosts and share the links with your peers, then here are the 6 possible ways to do that. ![]() Hi Martin, I try to do it as you wrote below, but unfortunatelly not succed it, so obviously I am doing soemthing wrong. Please help me with a concrete example, using following datas: server1: myserver1.com username: [email protected] password: passw1 folder: root/folder1 server2: myserver2.com username: [email protected] password: passw2 folder: root/folder2 server3: myserver3.com username: [email protected] password: passw3 folder: root/folder3 page to be uploaded: C: folder example.html thank you very much in advance. Alex[/quote] ◆ Site Admin Joined: 2002-12-10 Posts: 27,585 Location: Prague, Czechia Re: upload at once to multiple servers. I am unable to resolve the user name & password issues. I am trying to copy a file from my windows local machine remote linux machine which can be connected with a user name & pwd. I have a batch file as below. Cd cd C: Users E002856 AppData Local WinSCP WinSCP.com /script=C: Users E002856 ScrToCpFilesToMultLoc.txt ScrToCpFilesToMultLoc.txt is the script file whose code is as below. Open sftp://userName:[email protected]/ put d: examplefile1.txt /home/test-user/temp/ exit When I try to execute the batch file, it's asking me to provide the username & pwd again where I provided in the script already. I can able to execute this code manually with no issue. Any ideas how to resolve this. Thanks in Advance. ◆ Site Admin Joined: 2002-12-10 Posts: 27,585 Location: Prague, Czechia Re: upload at once to multiple servers. Question Is there any way to use multiple hosts files on windows(7)? Preferably without installing any external programs. Html5 Upload Multiple FilesExample Say my hosts file has in it 10.2.3.4 bob.com 10.2.3.5 jim.com And i want to also you another file say hosts2.txt containing 10.2.3.4 mark.com Is there any way for windows to read both files to use? The reason i want to do this and not just add more to the normal host file is that i am creating a script which relies on certain IPs going to certain domains. This will be used by multiple users, so i was hoping that i can just create one file in a shared directory that is read as well as the users own host file. This means if the addresses change in the future only one file would need to be changed instead of every users host file as well as allows transparent changes without the users knowledge. Ideas Maybe there is a registry or something that contains the name of the hosts file? Any more information needed let me know and i will add it. I'm not sure it is possible to alter the hosts file location in Windows. This seems to be backed up by the information in this article: which talks about the hosts file location in very specific terms and doesn't mention multiple files being possible. Unfortunately there doesn't seem to be an equivalent document for Windows 7. DNS The situation you describe does seem to scream out for a local DNS server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |