Question

Is there away to combine this into one batchfile? This is a hand me down task, but I think I should be able to combine the two. Why open Putty once and then open another tool pscp? I just don't know the difference between putty and pscp? Any help or insite would be appreciated. Thank you.

C:\putty.exe, 192.168.1.1 -pw xxxx killall /bob/bin/myfile.out

Close putty

pscp.exe myfile.out.2.3.4 root@192.168.1.1:/bob/bin/myfile.out pw

Reboot target

Was it helpful?

Solution

No, putty is analagous to ssh and pscp to scp.

PuTTY provides the overall functionality as does SSH. However, ssh and putty (non-capitalized) are interactive (as well as non-interactive by supplying shell commands as arguments) command line interfaces within the greater context of what PuTTY and SSH can do. scp and pscp are secure versions of the ftp Linux/Unix command (with similar, but not identical, command sets) which use the SSH protocol to securely authenticate and transfer files.

So essentially, there is not a way to combine them. The Unix philosophy is that one tool does one thing and does it really well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top