$ ssh user@remote-host "DISPLAY=:0.0 import -window root -format png -"|display -format png -

Admittedly, I’d never have thought of this without the earlier examples, but here’s one that you can execute from your workstation to just display the image from another, without separately doing a file transfer, etc. By the way, I hear a loud beep coming from the other room, so I guess it’s not too stealthy :-D

commandlinefu.com

by David Winterbottom (codeinthehole.com)



Tags: