Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 1999 03:04:46 -0500
From:      Zach Heilig <zach@uffdaonline.net>
To:        Juergen Nickelsen <jnickelsen@acm.org>
Cc:        Kris Kennaway <kkennawa@physics.adelaide.edu.au>, chat@freebsd.org
Subject:   Re: FreeBSD & X
Message-ID:  <19990603030445.A1873@k6n1.znh.org>
In-Reply-To: <x73e0alvs7.fsf@goting.jn.berlin.snafu.de>; from Juergen Nickelsen on Wed, Jun 02, 1999 at 12:52:08PM %2B0200
References:  <Pine.OSF.4.10.9906021417590.21520-100000@bragg> <x73e0alvs7.fsf@goting.jn.berlin.snafu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <zach@uffdaonline.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990603030445.A1873>