From owner-freebsd-questions Wed May 30 17:32: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailin5.bigpond.com (juicer02.bigpond.com [139.134.6.78]) by hub.freebsd.org (Postfix) with ESMTP id E31E237B423 for ; Wed, 30 May 2001 17:31:52 -0700 (PDT) (envelope-from dougy@gargoyle.apana.org.au) Received: from oracle ([139.134.4.51]) by mailin5.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GE6CE400.92B; Thu, 31 May 2001 10:37:16 +1000 Received: from CPE-61-9-142-202.vic.bigpond.net.au ([61.9.142.202]) by mail7.bigpond.com (Claudes-Loving-MailRouter V2.9c 15/2798916); 31 May 2001 10:31:57 Message-ID: <0a7a01c0e969$13842880$0300a8c0@oracle> From: "Doug Young" To: "Damien Tougas" Cc: References: <744580000.991268936@sprig.tougas.net> Subject: Re: Usage of "cu" Date: Thu, 31 May 2001 10:31:45 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 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 Thanks Damien ...... I guess I should have said that I've always run "cu" as root. so shouldn't that over-ride any ownership / group issues ?? > 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