All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: David Balazic <david.balazic@uni-mb.si>
Cc: matthias.andree@stud.uni-dortmund.de,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Simple local DOS
Date: Thu, 10 Jan 2002 09:22:10 -0500	[thread overview]
Message-ID: <20020110092209.A1357@animx.eu.org> (raw)
In-Reply-To: <3C3D9B2B.2DDB72CB@uni-mb.si>
In-Reply-To: <3C3D9B2B.2DDB72CB@uni-mb.si>; from David Balazic on Thu, Jan 10, 2002 at 02:46:19PM +0100

> > > log in on some virtual terminal, then run the following line 
> > > in a bourne type shell, like bash : 
> > > 
> > > X 2>&1 | less 
> 
> > or by just not piping X 

into less or more.

> I didn't do it on purpose to lock up my system and risk FS corruption
> durin unclean reboot. I was interested in the server output and " 2>&1 | less"
> is the logical way to do that.
> 
> I could also "solve" this problem by not running linux. And I can "solve" all
> gcc bugs by not using gcc. Those are not solutions. Not to me at least.

You could also solve all your computer problems by not using a computer.

> > output into interactive programs. tail -f is a viable workaround -- and 
> 
> tail -f ? what is the difference between :
> $ X 2>&1 | tail -f
> and
> $ X 
> ?
> 
> > all this is off-topic on linux-kernel,
> 
> non-root user locked up the console code. console code is part of kernel.
> it is a kernel topic.

This is not the problem. It's not the kernel's fault, it's less's fault. 
When you pipe to less, it only reads enough to display on the screen.  X is
sending tons more information than less is willing to read therefor X will
block (stop) until less reads more.  I've done this myself.  my work around
is to press END as soon as I hit enter.  That way less will go to the end
and not block.

You're better off doing:
X > somefile 2>&1
then lessing "somefile".  this won't block the X server.

I agree with matt that this is off-topic as it's not a kernel issue, it's
userland.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

  parent reply	other threads:[~2002-01-10 14:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10 13:46 Simple local DOS David Balazic
2002-01-10 13:56 ` David S. Miller
2002-01-10 13:57 ` Xavier Bestel
2002-01-10 14:04   ` David Balazic
2002-01-10 14:22     ` Jasper Spaans
2002-01-10 21:09   ` J Sloan
2002-01-10 14:07 ` Richard B. Johnson
2002-01-10 14:58   ` David S. Miller
2002-01-10 15:16     ` Richard B. Johnson
2002-01-10 21:10   ` J Sloan
2002-01-10 14:08 ` Matthias Andree
2002-01-10 14:22 ` Wakko Warner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11 13:00 Zwane Mwaikambo
2002-01-11 18:03 ` J Sloan
2002-01-09 16:51 David Balazic
2002-01-09 21:50 ` Matthias Andree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020110092209.A1357@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=david.balazic@uni-mb.si \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthias.andree@stud.uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.