Fake Windows application that runs on a remote host
Here’s a cool little trick to get a command line application on Windows to act like it is being run locally, but it actually runs something on a remote Linux host.
It’s actually very simple, as it just runs the PuTTY tool plink to open an SSH connection and it runs a single fixed command.
This would even be possible in a command line batch file. But if we are trying to fool some other program that relies on a certain command line tool to exist and behave like on a remote host, a batch file might not cut it.
Source!
What this does it just runs the program specified at the top and it passes all command line options given on the Windows host to the remote host process. Then it writes all the output from the SSH session to the local standard output.
In this example, it runs objdump on the remote host as required by QCachegrind on Windows as described in my post about profiling and visualization.