Sean Hincheeinitial push75d07b48 years agoHistory
243 lines · 3.0 KB · HTML
RawDownload
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	<meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" />	<meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." />	<link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" />	<title>Avoiding Screen Pollution From Kernel Messages (Diff)</title></head><body><h1><a name="top"></a>Avoiding Screen Pollution From Kernel Messages <i>-Diff-</i></h1> <div class='body'> <!-- ***************************** --> <hr /><div class='diff_head'><a href="index.html">Fri Feb  4 22:09:35 EST 2011</a>, sl</div><hr />Bydefault,thekernelwillprintmessagestotheconsoledevice(see<a href="http://plan9.bell-labs.com/magic/man2html/3/cons"><i>cons</i>(3)</a>).Thiscanbeproblematicwhenalsorunningrioontheconsole,asiscommononterminals:theconsoleoutputwilloverwritetheexistingscreencontents.<p class='para'>Toworkaroundthisproblem,openanewterminalwindowanddo:</p> <pre>cat /dev/kprint</pre> <p class='para'>Thisworksbecause,accordingtothekprintdiscussionin<a href="http://plan9.bell-labs.com/magic/man2html/3/cons"><i>cons</i>(3)</a>,"if(the)consoleisagraphicsscreen,thedataissenteithertothedisplayortokprint,butnotboth."</p> <p class='para'>Ifyou'dlikeamorepermanentsolutiontotheproblem,makeadirectory'/sys/log/consoles'andputalinelike</p> <pre>cat /dev/kprint &gt;&gt;/sys/log/consoles/$sysname &gt;[2=1] &amp;</pre> <p class='para'>somewhereintermrcortheincludedfiles(see<a href="http://plan9.bell-labs.com/magic/man2html/8/cpurc"><i>cpurc</i>(8)</a>),orinyourriostartup.Oncpuservers,itmaybeusefultoopenanewwindowwithsomethinglike:</p> <pre>{cat /dev/kmesg ; cat /dev/kprint} | tee /sys/log/consoles/$sysname</pre> <p class='para'>Thiswillsaveacopyoftheconsoleoutputwhilealsodisplayingitinamorecontrolledfashion.</p> <p class='para'>Itisprobablynotagoodideatoredirecttheseto/dev/null;theymaybeimportant.</p><hr> </div> <!-- ***************************** --> <hr class='banner_sep' /> <div class='banner'><ul>	<li><a href="../plan_9_wiki/">Wiki</a></li>	<li><a href="../Documentation/">Docs</a></li>	<li><a href="../news/">News</a></li>	<li><a href="../development/">Devel</a></li>	<li><a href="../papers/">Papers</a></li>	<li><a href="../download/">Download</a></li> </ul></div> <hr class='footer_sep' /> <div class='footer'>	<a href="./">Current Page</a> - 	<span class='last_mod'>Last modified Fri Feb  4 22:09:35 EST 2011</span>	<br />	<div class='about_wiki'><a href="http://plan9.bell-labs.com/plan9"><img align="middle" src="http://plan9.bell-labs.com/plan9/img/power36.gif" alt="Powered by Plan 9" /></a>	<a href="../about.html">About this Wiki</a>	</div>  </div> </body></html>