From owner-freebsd-questions@FreeBSD.ORG Thu May 9 21:39:04 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 43478B4B for ; Thu, 9 May 2013 21:39:04 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx1.freebsd.org (Postfix) with ESMTP id 202F3312 for ; Thu, 9 May 2013 21:39:03 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id bv13so2273278pdb.0 for ; Thu, 09 May 2013 14:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=/zh1OwDahfe2jMkrXAT64f5Mz4ggp4YS3aEViwyuicE=; b=DDKnjMSYZSgslc+lTZ8TR2Vz0Gi6BGfeRmjsW4biOnofTUdLKO0a62kD+Qo4hD5iFE MvVyBDYbtxnDuNegFcYFbo0Ct4p1UvrKDjhpuiHpCKbjLSxDNhTHttg8xzCxewUFqFvk CLYD/SKPM7whcy4NyzVvoa1Z+UZeDCpprq/0l32l5Z/wIGPt+F/EmrH/+oMDoOQjG9xE iuNwiHq685nna0E2WGaUxlUHQ0XKkepaKoMpgUR4uYbtrz3sv+g9jxJZiKn1amnOadN0 bQl4/xAC65W283hdEwZndCkBlP63Q31xsSe9P6oEjhGcQ5l2eiT5A5mEtC7bcrMhvQWZ xw/w== MIME-Version: 1.0 X-Received: by 10.68.185.162 with SMTP id fd2mr14240097pbc.176.1368135543466; Thu, 09 May 2013 14:39:03 -0700 (PDT) Received: by 10.68.149.3 with HTTP; Thu, 9 May 2013 14:39:03 -0700 (PDT) In-Reply-To: References: <20130509184144.GA1354@tiny.Sisis.de> Date: Thu, 9 May 2013 17:39:03 -0400 Message-ID: Subject: Re: X11 screen grabber from cmd line From: "illoai@gmail.com" To: Matthias Apitz , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Thu, 09 May 2013 21:39:04 -0000 On 9 May 2013 17:33, illoai@gmail.com wrote: > > On 9 May 2013 14:41, Matthias Apitz wrote: > >> >> Hello, >> >> 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? >> Thx >> >> matthias >> > > I use a simple script: > > cat scripts/screenshot > #!/bin/sh > xwd -root | xwdtopnm | pnmtopng > screenshot_${1}.png > > which uses x11/xwd & graphics/netpbm > > -- > -- > I just realised you might mean the text console, in which case ignore that. Look at the -p & -P options to vidcontrol(1). -- --