Copying file to many destination and one log file.
Hi All
I have created run.bat file that is using script.
Main goal that i want to achieve is to send one file to many hosts and verify gather log that will be proof that transfer was succeed for all of them, or in case of failure I will be able to verify which one doesn't get file.
script.txt
run1.bat code
run2.bat code
run3.bat code
When I start run1.bat i get proper mylog.txt but very long with redundant information, file is difficult to analyze
When I start run2.bat output.txt contain only host3 log
When I start run3.bat mylog.xml contain only host3 log
What should I do to get whole log like with run1.bat but in txt format or xml format.
Please give me some hint.
Thanks in advance.
I have created run.bat file that is using script.
Main goal that i want to achieve is to send one file to many hosts and verify gather log that will be proof that transfer was succeed for all of them, or in case of failure I will be able to verify which one doesn't get file.
script.txt
open %1% -hostkey=* cd /var/tmp option transfer binary put c:/winscp/example.txt close exit
run1.bat code
winscp.com /script=script.txt /parameter user:password@host1 /log=mylog.txt winscp.com /script=script.txt /parameter user:password@host2 /log=mylog.txt winscp.com /script=script.txt /parameter user:password@host3 /log=mylog.txt
run2.bat code
winscp.com /script=script.txt /parameter user:password@host1 /log=mylog.txt>output.txt winscp.com /script=script.txt /parameter user:password@host2 /log=mylog.txt>output.txt winscp.com /script=script.txt /parameter user:password@host3 /log=mylog.txt>output.txt
run3.bat code
winscp.com /script=script.txt /parameter user:password@host1 /log=mylog.xml winscp.com /script=script.txt /parameter user:password@host2 /log=mylog.xml winscp.com /script=script.txt /parameter user:password@host3 /log=mylog.xml
When I start run1.bat i get proper mylog.txt but very long with redundant information, file is difficult to analyze
When I start run2.bat output.txt contain only host3 log
When I start run3.bat mylog.xml contain only host3 log
What should I do to get whole log like with run1.bat but in txt format or xml format.
Please give me some hint.
Thanks in advance.