From owner-freebsd-questions@FreeBSD.ORG Fri May 10 03:47:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6D070FF7 for ; Fri, 10 May 2013 03:47:55 +0000 (UTC) (envelope-from Lena@lena.kiev.ua) Received: from lena.kiev.ua (lena.kiev.ua [82.146.52.81]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4C7991 for ; Fri, 10 May 2013 03:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lena.kiev.ua; s=3; h=Content-Type:Mime-Version:Message-ID:Subject:To:From:Date; bh=I08EiSqm1lD18siI+1DLCE/4eE49XgNCQjOIOfRI4ug=; b=kUUcNBqWfnLnkzUQwqbCl7K9I+nCyZn0HibowSp/bibfy4mBQRtmT4WGHFw0iaAvguwcId/nQXTHvGkV6p/1r0MyI0W6Jd1D83MRYWR147PcN2C7ufgRWfyUf0cj2P0pl/YdCUuYUTz4DCcmgJGoqcghkNpv1vjsDwlel2oO3tM=; Received: from ip-384c.rusanovka-net.kiev.ua ([94.244.56.76] helo=bedside.lena.kiev.ua) by lena.kiev.ua with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UaeJE-0000Pr-GJ; Fri, 10 May 2013 06:47:53 +0300 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.14.7/8.14.7) with ESMTP id r4A3le8U001458; Fri, 10 May 2013 06:47:40 +0300 (EEST) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.14.7/8.14.7/Submit) id r4A3leOh001457; Fri, 10 May 2013 06:47:40 +0300 (EEST) (envelope-from Lena@lena.kiev.ua) 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 03:47:55 -0000 > 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