PrintScreen

I can remotely login to the systems I have but Im trying to figure out how to get a printscreen picture to work as I want it posted to a loction on my system windows box every few minutes.

Here is what I have

xwd -display :0 -root > screen.xwd

Now when I ftp over and bring this file to windows I can not view it, I have even tried saving the "screen.xwd" as different extensions. without downloading other programs and converting it is there a way to display the current desktop in a "Windows" readable format?

first hit on google for 'xwd'

xwd - Wikipedia, the free encyclopedia

Ok so now im lost. I in now way consider myself above average in unix so here is how Im confused.

xwd | xwdtopnm | pnmtopng > screen.png

OK, I undertsand what xwd does, but what about xwdtopnm and pmtopng?

The version of solaris that my machine is running apparently doesnt support pnmtopng, soooo where do I go from here?

What xwd is doing is taking the screen and dumping it to the standard out (stdout). This output is being piped through two programs and then redirected to 'screen.png' The two programs were creating a format 'png' which would be readable.

The wp page also mentioned other readers that could do similar processing.

try using sdtimage.

Do you want the entire screen or just one window printed out?

A script I use for a window: ( if you don't want to print just remove that line).

set aa=`xwininfo | grep xwininfo | grep "Window id" | awk '{ print $4 }'`

/usr/dt/bin/sdtimage -snapshot -window $aa -f -out JPEG:/tmp/test.jpeg 
lp /tmp/test.jpeg

If you want the entire screen you should be able to change -window to -screen and remove the $aa varb.
For full usage options:

/usr/dt/bin/sdtimage -usage