On Fri, Feb 22, 2002 at 03:32:58PM +0000, Colm Buckley wrote:
> On Fri 22 Feb 2002 15:02, Kieran OSullivan wrote:
> > Sorry I should have been a bit clearer in my original post I know about
> > the Page Up (or Pig Up for all the Simpsons fans) sutff I was wondering
> > how could I access the text using say the grep command.
> Hmm. The short answer is "you can't".
well... kinda.
man vcs. specifically he could do fold -w 81 /dev/vcs0 | grep blah -
but that will only show the current screen - not the history. and note
that it does not have newlines at the end of each "line".
what you want to do?
if you have a program you're running on the console that you'll want
to access later from somewhere else, use screen like colm suggested.
this way you can reconnect to the screen session (and you'll get the
history with the renewed session which you can save off to a file and
grep) if you're wondering what info a driver is spitting to the console,
have syslog spit stuff to /var/log/console as well as /dev/console
(man syslog.conf).
kevin
--
kevin at suberic.net buffy: come on, can't you put your foot down?!
fork()'ed on 37058400 giles: it *is* down.
meatspace place: orbit buffy: one of these days you're going to have to
http://suberic.net/~kevin get a grown up car. --inca mummy girl
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!