From owner-freebsd-questions Wed May 30 17:29: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cache1.hck.carroll.com (cache1.hck.carroll.com [216.44.20.19]) by hub.freebsd.org (Postfix) with ESMTP id B22D137B422 for ; Wed, 30 May 2001 17:28:58 -0700 (PDT) (envelope-from damien@carroll.com) Received: from sprig.tougas.net ([216.44.20.42] verified) by cache1.hck.carroll.com (CommuniGate Pro SMTP 3.2.4) with ESMTP id 3220154; Wed, 30 May 2001 20:28:57 -0400 Date: Wed, 30 May 2001 20:28:56 -0400 From: Damien Tougas To: Doug Young Cc: freebsd-questions@freebsd.org Subject: Re: Usage of "cu" Message-ID: <744580000.991268936@sprig.tougas.net> In-Reply-To: X-Mailer: Mulberry/2.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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