Date: Wed, 30 May 2001 20:28:56 -0400 From: Damien Tougas <damien@carroll.com> To: Doug Young <dougy@gargoyle.apana.org.au> Cc: freebsd-questions@freebsd.org Subject: Re: Usage of "cu" Message-ID: <744580000.991268936@sprig.tougas.net> In-Reply-To: <Pine.WNT.4.21.0105310905070.1448-100000@oracle>
next in thread | previous in thread | raw e-mail | index | archive | help
One of the ways cu knows that the line is in use is that it checks the ownership and permissions on the device. Usually in this situation, I have been able to rectify things by resetting the ownership and permissions on /dev/cuaaX (typically uucp:dialer and mode 0660). Some programs which access serial ports also create a lock file in /var/spool/lock which can be removed as well. There have been a couple of occasions where I have gotten gibberish when I tried to access the modem after doing this because somthing else was still using it. YMMV. --- Damien Tougas Systems Administrator Carroll-Net, Inc. http://www.carroll.com --On Thursday, May 31, 2001 09:09:15 +1000 Doug Young <dougy@gargoyle.apana.org.au> wrote: > Would someone please enlighten me on the correct usage of "cu" > > I often need to re-set remote modems when they get hung, & generally > using "cu -l /dev/cuac0x" brings a "Connected" response. Sometimes > however I get the following > > # cu -l /dev/cuac0x > cu: /dev/cuac0x: Line in use > > killing the getty doesn't help because it re-starts immediately > > Is there a way to ALWAYS make the modem pay attention ?? > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message 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?744580000.991268936>