Article 566KY How do I capture a screen with xwd?

How do I capture a screen with xwd?

by
lucmove
from LinuxQuestions.org on (#566KY)
I need to capture a window with xwd:

$ xwd -out /home/me/dump

I run it, I get a crosshair pointer, click on the target window and the screenshot is dumped. I can view it with xwud.

Now, I need to do that non-interactively.

$ xprop WM_NAME

I get a crosshair pointer, click on the target window and the output tells me:

WM_NAME(STRING) = "Name of application"

So I run:

$ xwd -name "Name of application" -out /home/me/dump

Then I try to view it with xwud and the result is a completely black screen. There seems to be a thin gray frame around it.

What am I doing wrong?latest?d=yIl2AUoC8zA latest?i=cZQ6w4jFCM4:LQ45P-qbgK4:F7zBnMy latest?i=cZQ6w4jFCM4:LQ45P-qbgK4:V_sGLiP latest?d=qj6IDK7rITs latest?i=cZQ6w4jFCM4:LQ45P-qbgK4:gIN9vFwcZQ6w4jFCM4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments