windows, Putty, pscp combined in to a single batch file, is it possible? -


I am having trouble finding the answer to my question, in Lemons' words perhaps there is a lack of knowledge on this topic, That's why I got rubbed down the question. I have a Windows machine that I run the Putty Tool and connect to a Linux box. I run "killall /bob/bin/myfile.out", then close the confirmation, then type in a CMD prompt pscp.exe myfilet.out.2.3.4 root@192.168.1.1: / bob / bin / myfile Can anyone show me how to combine them into a single Windows batch file? Thank you

You can use the free command line tool to run commands on external servers through SSH can do.

  @echo off plink root@192.168.1.1 "killall /bob/bin/myfile.out" pscp.exe myfilet.out.2.3.4 Route @ 192.168.1.1: / Bob / bin / Myfile .out || An error occurred while copying the file  

After the = on the second line, the command will run only when an error level is determined at the previous level.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -