From owner-freebsd-questions Tue Jun 10 06:11:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA03286 for questions-outgoing; Tue, 10 Jun 1997 06:11:17 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA03278 for ; Tue, 10 Jun 1997 06:11:02 -0700 (PDT) Received: by mail.EUnet.hu, id PAA12703; Tue, 10 Jun 1997 15:10:35 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id PAA00629; Mon, 9 Jun 1997 15:50:50 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706091350.PAA00629@CoDe.hu> Subject: Re: ttywatcher To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Mon, 9 Jun 1997 15:50:50 +0200 (MET DST) Cc: polymorphic@hotmail.com In-Reply-To: <199706072124.OAA10569@f23.hotmail.com> from George Papadopoulos at "Jun 7, 97 02:24:10 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I've searched and searched and searched,and my quest led me to > ttywatcher...the only thing I could found that can monitor a user's > actions and is meant to work for "Unix" in general and not for Linux > like ttysnoop.Well,ttywatcher seems to work for SunOS (as the Makefile > says) rather than "Unix" in general.I tried to change the Makefile but > it needs some files which I don't personally have in /usr/include.Now, > I was wondering if there is any other program for FreeBSD to do the job > (though I've searched the ports and packages and found nothing) or > if I have any changes gettying ttywatcher to work provided that I find > the files it needs.Should the answer to the last question be yes,does > any1 know where to find strange .h files? > If in the end I do have to port ttywatcher from another OS,would it be > wiser to port it from Linux or Solaris? What's the problem with tcpdump? It's default. Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"