Reputation: 5315
i am using tcl script to change the password in a xml file and NYMEX server using expect send
and expect
commands.
so before doing that i want to copy linux machine xml file to my local windows machine then locally i want to change the password attribute value in that xml then put it back to linux machine.
is it possible through
file copy {C:\Where\To\Copy\From.txt} {C:\Where\To\Copy.to}
can i use XCOPY
command in tcl? if yes please give some info.
can any1 please help me out... thanks in advance.
Upvotes: 0
Views: 2452
Reputation: 5315
we can use putty to copy from linux machine to windows machine and vice-versa
extract putty in you machine. eg: c:\putty
move to c:\putty
in CMD
run there to move linux to windows
pscp -l username -pw password ipaddressoflinuxmachine:/opt/TCagg/TCaggCombined/bin/fastfood/Clients/TA/abc.xml c:/temp
run there to move windows to linux
pscp -l username -pw password c:/temp/abc.xml ipaddressoflinuxmachine:/opt/TCagg/TCaggCombined/bin/fastfood/Clients/TA/
Upvotes: 1