Have a linux shell script enter a line into the user's windows copy / paste buffer

Now we have a script that our Windows users run on the Linux host through putty. From time to time, the script creates a line that the user must copy and paste into the Windows application.

Without starting the full-screen X-display server in the Windows window, I would like to change the script so that the line is filled in Windows copy / paste with the Windows buffer automatically, so that it is more convenient for the user and therefore we reduce the error rate (the workflow is rather awkward, we wanted would make it a little smaller).

Here I am not considering a solution:

  • Starting the full-screen display manager X on the Windows side is just for that (if there is an almost invisible utility that allows only this function to distinguish history)
  • Block Windows user
  • Rewrite all other applications

I have full control over the Windows user environment (you can configure any putty options that I need), as well as the Linux host and each node on the network between them.

+3
source share
3 answers

If I had to do this, I would probably grab the putty sources and make changes to it.

, ; script Linux, deamon , Windows.

+2

script , stdin/stdout, plink, , , , , PuTTY.

+1

Source: https://habr.com/ru/post/1735252/


All Articles