Jump to content

Automate PuTTY


mortecane
 Share

Recommended Posts

Hi everyone, I need to automate PuTTY, my team use it to connect via ssh to a unix machine and send commands to run processes.

I have already created a GUI to receive some input variables and then run the Putty. The thing is I don´t find the way to read the commands output, therefore there´s no way to know when a command execution ended (currently using Sleep) and there is no way to change the script flow based on command output.

I read something about plink, I'm not sure if a solution would be to write .bats with AutoIt and then run them, seems a little complicated.

Any help will be much welcomed

regards

Link to comment
Share on other sites

Hello Mortecane, and welcome to the forums.

I use putty, simply for an interactive vt. It annoyed me that it does not accept alt-space to open the menu, so I made a hot-key function that right-clicks on the title-bar. On that menu there is 'copy all to clipboard', which you could use, followed by ClipGet, and you'd have your program's output.

Tomorrow I could get you my code, but it's easy and you can probably repeat it before then.

Richard.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...