From owner-freebsd-chat Thu Jun 3 1: 3:57 1999 Delivered-To: freebsd-chat@freebsd.org Received: from k6n1.znh.org (unknown [207.109.235.8]) by hub.freebsd.org (Postfix) with ESMTP id 0D09F151B1 for ; Thu, 3 Jun 1999 01:03:54 -0700 (PDT) (envelope-from zach@uffdaonline.net) Received: (from zach@localhost) by k6n1.znh.org (8.9.3/8.9.1) id IAA03995; Thu, 3 Jun 1999 08:04:46 GMT (envelope-from zach) Date: Thu, 3 Jun 1999 03:04:46 -0500 From: Zach Heilig To: Juergen Nickelsen Cc: Kris Kennaway , chat@freebsd.org Subject: Re: FreeBSD & X Message-ID: <19990603030445.A1873@k6n1.znh.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Juergen Nickelsen on Wed, Jun 02, 1999 at 12:52:08PM +0200 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 02, 1999 at 12:52:08PM +0200, Juergen Nickelsen wrote: > Someone I knew (Carsten Rossenhoevel) developed a portable alternative > once: > > ( ps -ael ; netstat -s ) | > compress | > tr "\100-\377" "\007-\077\001-\077\001-\077\001-\077" | > tr "\001-\077" "9a-f0-9a-f0-9a-f0-9a-f0-9" | > fold -32 | > awk '{ l1=l2; l2=l3; l3=l4; l4=$0; } END { print l1 }' > > Allegedly this runs on a *wide* variety of Unixen; I have used it > myself on SunOS (4 and 5), HP-UX, Linux, and FreeBSD without > modification. Are nul's ok? I just ran it a bunch of times, and here are four keys that were spit out (with an added '| cat -v' at the end): c3876a72354f7be7bc4706739929955f 6b54bc60abeb79e5fad3e548607^@76d5 4f6fcb33e86ee3735^@8b40ce705e849f c5a0ed43e86de3a35^@fc1ec2575d87a9 [ incidentally, FreeBSD's syscons will not cut-n-paste real nul's ] -- Zach Heilig