Sunday, October 14, 2012

Capture Image with xwd Command

1) Capture using xterm window name:
     # xwd -root -name xterm_window_name > capture.xwd
     # xwud -in capture.xwd  (preview the image)

2) Capture using xterm id information:
     # xwininfo  (run this command and click on xterm window to get the id. e.g: 0x300fa8)
     # xwd -id 0x300fa8 > capture.xwd
     # xwud -in capture.xwd

3) Capture remote screen on the same LAN:
     # xwd -root -silent -display 192.168.1.103:0 > capture.xwd
     # xwd -root -silent -display computer1:0 > capture.xwd
     # xwd -root -display computer2:0 > capture.xwd  (beep appear at computer2 when command executed)
     # xwud -in capture.xwd

Note: You can convert xwd files to jpg, png or others format with Gimp application.


xterm Command Recorder:
     # script
     # exit
     # cat typescript

No comments:

Post a Comment