ssh "!command" escape sequence - does it work?
Karl Auer
kauer at biplane.com.au
Fri Sep 11 15:32:37 UTC 2020
On Fri, 2020-09-11 at 15:31 +0100, Chris Green wrote:
> I wonder if it will allow starting a GUI program on the local system,
> that's what I actually want to do (I'm reading E-Mail via ssh and
> want to fire up a PDF viewer *locally* when there's a PDF
> attachment). I'll try it.
I just tried it and was able to start a PDF viewer locally, i.e. on my
system, not the one I was connected to. I just typed "!evince" at the
"ssh>" prompt.
I'm not sure how your plan will work, though,given that presumably the
attachment is on the remote computer along with the email and thus not
accessible to your local viewer.
If you save the attachment on the remote in (say) /tmp, then you could
use a local command like "!scp me at remote:/tmp/filename.pdf /tmp ;
evince /tmp/filename". Untested..
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list