Re: What is UNIX's equivalent of IOS clear line for *reverse*

From: Guy Sherr (gsherr@gmail.com)
Date: Fri Jul 27 2007 - 23:48:42 ART


Assuming other factors, the problem is that there is either unread or
unwritten data on the tty that minicom is unable to dispatch. Other than
kill -9, there are two possible solutions.

1. cat < /dev/tty?? & (where the question marks are the tty number)
2. cat /dev/null > /dev/tty??

This might "clean" the tty itself and permit minicom to proceed.

One other possibility is that the connection itself on the router has been
forced to XOFF for some reason, which might be cleared out by broadcasting a
message on the router to that line.

The reason that minicom is not responding to a different kill signal is that
the underlying process is caught in an "uninterruptible" state. When this
is the case, even though the linux/unix kernel can deliver the signal to it,
the process waiting for another event uninterruptibly will simply ignore any
signals sent by the kernel. Also there can be "stuck" conditions, such as
minicom trying to put output to a tty that is XOFF'd, or to a device owned
by another process that is itself waiting for an event to complete (even if
it could be interrupted or resumed).

HTH,
guy
On 7/27/07, John Gibson <johngibson1541@yahoo.com> wrote:

> I have no problem with kill -9
>
> Just curious about how everyone else does.
>
> I don't know why I don't have lock problem.
>
> I do minicom -ow , which I guess does not lock.
>
>
> John
>
> --- "Todd, Douglas M." <DTODD@PARTNERS.ORG> wrote:
>
> > If your problem has not been fixed already:
> >
> > In the past when mincom does not gracefully close
> > minicom a lock file is left
> > behind. I believe this is /var/lock or if you are
> > using linux and updatdb is
> > running you can look for lock files. Minicom
> > usually complains about a lock
> > file or something like that and the port can not get
> > opened. Other utilitizes
> > like kermit to accomplish what you want.
> >
> > What error are you getting?
> >
> > Douglas
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com
> > [mailto:nobody@groupstudy.com] On Behalf Of
> > johngibson1541@yahoo.com
> > Sent: Wednesday, July 25, 2007 11:06 AM
> > To: ccielab@groupstudy.com
> > Subject: What is UNIX's equivalent of IOS clear line
> > for *reverse* telnet lines?
> >
> > Appreciate any thing.
> >
> >
> > 5 days left to the lab.
> >
> > I can only do kill -9 $minicom_process_id
> >
> > Simple kill doesn't make minicom pay any attention.
> >
> > Minicom just shuts its ears when running.
> >
> >
> > John
> >
> >
> _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.10.20/919 -
> > Release Date: 7/26/2007 9:56
> > AM
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.476 / Virus Database: 269.10.20/919 -
> > Release Date: 7/26/2007 9:56
> > AM
> >
> >
> >
> >
> >
> >
> > The information transmitted in this electronic
> > communication is intended only for the person or
> > entity to whom it is addressed and may contain
> > confidential and/or privileged material. Any review,
> > retransmission, dissemination or other use of or
> > taking of any action in reliance upon this
> > information by persons or entities other than the
> > intended recipient is prohibited. If you received
> > this information in error, please contact the
> > Compliance HelpLine at 800-856-1983 and properly
> > dispose of this information.
> >
> >
>
>
>
>
>
> ____________________________________________________________________________________
> Yahoo! oneSearch: Finally, mobile search
> that gives answers, not web links.
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sat Aug 18 2007 - 08:17:42 ART