From owner-freebsd-questions@FreeBSD.ORG Sun Jun 22 19:14:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6B7E1065679 for ; Sun, 22 Jun 2008 19:14:29 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id 89AFD8FC1F for ; Sun, 22 Jun 2008 19:14:29 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1665022wfg.7 for ; Sun, 22 Jun 2008 12:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=+OvqRk3Oqc+s/Q7g2RFPmDGW/VfJJagPrt7QctynRpo=; b=eTRid/TYQcTthV5BYaRrXwGABLJZyHNgFO3eY5ylG7l7ZNodJt/5ACMDLy+V6EFJ+G 5rayKU2KMQYbt+5rSq4/CZ9fpYJwEBtjpJVj3l/FJasnphV+JL6bOvk8d2WTOXe3C1xI P/gXLyd5REMzIsXqpUnurr9t5EL3gs3oSFqxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=D8Z+CF9QKndR+KPa/pnTWhK3QmBK2P+8699f/a3kgyfcTiuXlnT89QLsAJVjU35/WK Fj4lmVxBNLi+xDFAifLaTzL/qqzgxz77EYaRQpMy5ZrCqQHfXwgRflFymcE1K48WXpnO t4llOnsQDks2ltv3OsqnwDIhLwUZWavtxjWDc= Received: by 10.142.156.19 with SMTP id d19mr3054760wfe.261.1214162068173; Sun, 22 Jun 2008 12:14:28 -0700 (PDT) Received: from 200-117-245-190.fibertel.com.ar ( [190.245.117.200]) by mx.google.com with ESMTPS id 9sm909269ywf.8.2008.06.22.12.14.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Jun 2008 12:14:27 -0700 (PDT) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Sun, 22 Jun 2008 16:14:22 -0300 User-Agent: KMail/1.9.7 References: <3406.24.23.188.135.1214157813.squirrel@nexus.cs.usfca.edu> In-Reply-To: <3406.24.23.188.135.1214157813.squirrel@nexus.cs.usfca.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806221614.22927.gnemmi@gmail.com> Subject: Re: Which file can I find the error message that shows on the screen when I build my kernel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 19:14:30 -0000 On Sunday 22 June 2008 15:03:33 dhuang2@cs.usfca.edu wrote: > Hi: > I have make some changes to the kernel files and rebuild the kernel, but > when I rebuild the kernel, it show some errors and stop rebuild. The > question I want ask is that: Is there any file that store all these error > message, If there is, where can I find it? > Because there are too many errors occur, I can't see all the errors on the > screen, if there is a file that store these error messages, then I can > find all the errors and fixed them. > Thanks! > Best Wishes The Best of FreeBSD Basics by Dru Lavigne; pg43/44; Reed Media Services open your terminal and issue: "csh -i | tee nameoffile" what does that mean? well .. youll get a new prompt and everything that goes on, on that propmt, will be piped to "tee" which will "record everything" on "nameoffile" When done, press Ctrl-D then "cat nameoffile" to view your session. Example: You can often get answers to your questions about FreeBSD by searching in the FreeBSD mailing list archives at http://www.FreeBSD.org/search/search.html [gonzalo@inferna ~]% csh -i | tee recording To read a compressed file without having to first uncompress it, use "zcat" or "zmore" to view it. -- Dru [gonzalo@inferna ~]% cd /usr/ports/ [gonzalo@inferna /usr/ports]% make quicksearch name=linux-doom3 Port: linux-doom3-1.3.1.1304,1 Path: /usr/ports/games/linux-doom3 Info: Doom III for Linux Port: linux-doom3-demo-1.1.1286_1 Path: /usr/ports/games/linux-doom3-demo Info: DOOM III demo for Linux [gonzalo@inferna /usr/ports]% exit [gonzalo@inferna ~]% cat recording To read a compressed file without having to first uncompress it, use "zcat" or "zmore" to view it. -- Dru [gonzalo@inferna ~]% cd /usr/ports/ [gonzalo@inferna /usr/ports]% make quicksearch name=linux-doom3 Port: linux-doom3-1.3.1.1304,1 Path: /usr/ports/games/linux-doom3 Info: Doom III for Linux Port: linux-doom3-demo-1.1.1286_1 Path: /usr/ports/games/linux-doom3-demo Info: DOOM III demo for Linux [gonzalo@inferna /usr/ports]% exit [gonzalo@inferna ~]% That's way better to store just the error messages (which can be easily redirected STDERR to a file using ">& nameoffile" under csh or "2> nameoffile" under bash) beacause you'll be recording your whole sessions instead of just the errors ;) Now be a good citizen, go to freebsdmall.com, buy the book and subscribe to Freebsd starting with version 7.0 ... ;) Thanks Dru, for your book sits on besides my computer now, and it will not move from there for a really long time :) Hope it helps :) -- Blessings Gonzalo Nemmi