From owner-freebsd-questions Sun Mar 17 09:20:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA24643 for questions-outgoing; Sun, 17 Mar 1996 09:20:06 -0800 (PST) Received: from mail.calweb.com (mail.calweb.com [165.90.138.20]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA24636 for ; Sun, 17 Mar 1996 09:20:03 -0800 (PST) Received: from calweb.calweb.com (calweb.calweb.com [165.90.138.3]) by mail.calweb.com (8.7.3/8.7.3) with ESMTP id JAA08121; Sun, 17 Mar 1996 09:19:27 -0800 (PST) Received: from web1.calweb.com (rdugaue@web1.calweb.com [165.90.138.10]) by calweb.calweb.com (8.7.3/8.7.3) with SMTP id RAA03255; Sun, 17 Mar 1996 17:19:26 GMT Date: Sun, 17 Mar 1996 09:19:57 -0800 (PST) From: Robert Du Gaue To: Donald Burr cc: FreeBSD Questions Subject: Re: How to use the 'snp' devices? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I compiled in the 'snp' pseudo-device into my kernel, which supposedly > allows you to 'snoop' on any Tty/Vty/Pty in your system. I'd like to use > this for when I'm in X windows, so I can monitor the status of some > programs still running in text-mode VC's without having to switch out of > X. How can I do this? I know I use the "tcpdump" program to use the bpf > pseudo-device, is there a similar command to use the snp devices? I assume you used : pseudo-device snp 2 Where here we're defining two snp devices.. > > Also, how do I make the devices in the /dev directory for snp devices? > MAKEDEV does not seem to have any commands to make them... And then: bash# ls sn* snp0 snp1 bash# ./MAKEDEV snp2 bash# ls snp* snp0 snp1 snp2 bash# Worked fine here, though you're right, it's not too well define in ./MAKEDEV (someone should probably put a comment in there...) :-) Here is the section that creates it though in case yours is missing it for some reason: snp?) unit=`expr $i : 'snp\(.*\)'` rm -f snp$unit mknod snp$unit c 53 $unit chown root.wheel snp$unit ;;