Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Error/status messages



From: Neil Booth <NeilB@example.com>
Subject: tlug: Error/status messages
Date: Sat, 19 Sep 1998 17:39:08 +0900

NeilB> When running under X, if I run some software and it emits errors or
NeilB> messages, I don't see them until I exit X, and even then a lot tend to
NeilB> have scrolled off the screen.
NeilB> 
NeilB> Is there a way to have an xterm instance running to which all such
NeilB> output is directed, so I can see it while still being in the windowing
NeilB> environment? Or something similar?
NeilB> 
NeilB> Hope my query is clear.

There are probably several ways to do this.  Under xdm, I think there is
the option to have a console that has the error messages.  If you start
X with something like 

  $ startx

you can do 

1)  $ startx > X.log  2>&1

Then within an xterm do

2)  $ tail -f X.log


Explanation:
1) run the standard startx script, but direct both standard output
and standard error to the file X.log 

2) print a continuous listing of the contents of the file X.log.  Since
the file X.log can grow with additional error messages, the -f flag is used
to specifiy that tail not exit when it reaches the end of the file.









--------------------------------------------------------------
Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 10 October, Tokyo Station Yaesu central gate 12:30
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links