Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 1999 17:48:55 +1000
From:      Sue Blake <sue@welearn.com.au>
To:        freebsd-questions@freebsd.org
Cc:        Eric Hodel <hodeleri@seattleu.edu>, Jim Mock <jim@blues.ghis.net>
Subject:   Re: watch
Message-ID:  <19990512174855.49822@welearn.com.au>

next in thread | raw e-mail | index | archive | help
For the archives. These were sent to -newbies by mistake.

-----Forwarded message from Eric Hodel <hodeleri@seattleu.edu>-----

Date: Tue, 11 May 1999 21:30:08 -0700
From: Eric Hodel <hodeleri@seattleu.edu>
To: yang baru belajar <odhienx@arwana.untan.ac.id>
Cc: freebsd-newbies@FreeBSD.ORG
Subject: Re: watch

yang baru belajar wrote:
> 
> how to make watch can work...
> 
> i try to run watch... (watch -Wi /dev/ttyp*)
> 
> watch: fatal cannot open snoop device
> 
> please explain me :-)

This is a question best suited for questions, but I'll be nice.

First you need to add the snoop device to your kernel, then recompile
it.  The snoop device is:

pseudo-device	snp	3 #3 snoop devices

The number is not mandatory, it just specifies how many snoop devices
you want. After adding the snp line to your kernel, config, compile,
and install the kernel, then reboot.  After rebooting, as root:

cd /dev
./MAKEDEV snp3 

or however many snp devices you specified.  Then you will be able to:

watch -Wi /dev/ttyp0

successfully.

Kernel recompilation is covered in the handbook.

-- 
Eric Hodel
hodeleri@seattleu.edu

"If you understand what you're doing, you're not learning anything."
	-- A. L.


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

-----End of forwarded message-----
-----Forwarded message from Jim Mock <jim@blues.ghis.net>-----

Date: Wed, 12 May 1999 14:29:57 +1000
From: Jim Mock <jim@blues.ghis.net>
To: yang baru belajar <odhienx@arwana.untan.ac.id>
Cc: freebsd-newbies@FreeBSD.ORG
Subject: Re: watch

On Wed, 12 May 1999 at 10:31:47 +0700, yang baru belajar wrote:
> how to make watch can work...
> 
> i try to run watch... (watch -Wi /dev/ttyp*)
> 
> watch: fatal cannot open snoop device 
> 
> please explain me :-)

In the future, please post stuff like this to -questions.  It doesn't
belong on -newbies.

Now for the answer to your question, in order to use watch, you need
the snoop device compiled into your kernel.  Add the following line,
then recompile..

pseudo-device   snp     3       #Snoop device

-- 
- Jim Mock - jim@blues.ghis.net - systems administrator - ghis.NET -
- work: http://www.ghis.net/ - personal: http://www.ghis.net/~jim/ -
- FreeBSD 'zine: http://www.freebsdzine.org/ - jim@freebsdzine.org -
- FreeBSD: http://advocacy.freebsd.org/ - jim@advocacy.FreeBSD.org -


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

-----End of forwarded message-----

-- 

Regards,
        -*Sue*-
(`
()
'`   <-- a +1 budgerigar named Einstein
 


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




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