Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save a remote screenshot

Status
Not open for further replies.

huangwason

Programmer
Oct 10, 2006
21
DE
Hi I want to save a remote screenshot from my local PC. For example, I have a target with IP 10.0.100.1, if I login in via ssh to this target, I could save the screenshot by command
DISPLAY=":0.0" import -window root screenshot.png
or
xwd -out -root -display :0.0 screenshot.xwd

Now I do not login via ssh, I want to save the remote screenshot in my local PC. I have tried command
ssh root@10.0.100.1 'DISPLAY=":0.0" import -window root screenshot.png'
or
ssh root@10.0.100.1 'xwd -out -root -display :0.0 screenshot.xwd'

neither can save the screenshot, do someone any suggestion? Thanks in advance.



 


Never saw those commands but you could try:
Code:
ssh root@10.0.100.1 'DISPLAY=":0.0" import -window root - ' > screenshot.png
## or
ssh root@10.0.100.1 'xwd -out -root -display :0.0 - ' > screenshot.xwd
If redirection does not work, then maybe this will:
Code:
ssh root@10.0.100.1 'DISPLAY=":0.0" import -window root screenshot.png'
scp root@10.0.100.1:./screenshot.png .
## or
ssh root@10.0.100.1 'xwd -out -root -display :0.0 screenshot.xwd'
scp root@10.0.100.1:./screenshot.xwd .
[3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top