Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 06:47:40 +0300
From:      Lena@lena.kiev.ua
To:        freebsd-questions@freebsd.org, guru@unixarea.de
Subject:   Re: X11 screen grabber from cmd line
Message-ID:  <20130510034740.GA923@lena.kiev>

Next in thread | Raw E-Mail | Index | Archive | Help
> Do we have something in the ports which could do a screen shoot
> of $DISPLAY, but from the cmd line of an alpha console,
> and save it as PNG or JPEG?

#!/bin/sh
xwd -display :0 | xwdtopnm | ppmtojpeg -optimize > $1.jpg

~ # pkg_which xwd
xwd-1.0.5
~ # pkg_which xwdtopnm
netpbm-10.35.89
~ # pkg_which ppmtojpeg
netpbm-10.35.89




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20130510034740.GA923>