I never expected that from you !!! try ls -l /dev/psaux
bash# ls -l ps*
crw-rw---- 1 root root 10, 1 Apr 26 09:30 psaux
bash#
Cheerio
Robin
"Ramasubramanian, Suresh" wrote:
> I ~may~ be wrong, but ps aux is the command to see what processes are
> running on your box. PS2 mice use /dev/ttySx these days (rh6.1 at least).
> dev/cuaX is old (till rh 6)
>
> Suresh Ramasubramanian [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Robin Chatterjee [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 26, 2000 1:27 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [LIH] How do I detect a device?
> >
> > a ps2 mouse uses psaux not /dev/cua doesn't it ?
> > cheerio
> > Robin
> >
> > > Suppose in the middle of a Linux session, I have pulled out the mouse (a
> > > PS/2) cable. How do I detect that the mouse is no longer intact? I tried
> > > the following C code, but with no result. All the time the status
> > > if ((fd = open("/dev/cua1", O_RDWR | O_NDELAY)) < 0) /* /dev/cua1 is
> > > the mouse port */
> > > {
> >
>
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/
--
_END_
Robin S Chatterjee Yahoo pager ID -Robinchatterjee
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
FAX 1-(815)550-6171
Robin's Poetry Pages
http://www.geocities.com/singerosongs
Robin's Perl Pages
http://www.geocities.com/robinchatterjee
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.