From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 10:01:13 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 703FB16A41F for ; Fri, 18 Nov 2005 10:01:13 +0000 (GMT) (envelope-from guru@Sisis.de) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6343343D5D for ; Fri, 18 Nov 2005 10:01:12 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id KAA04753; Fri, 18 Nov 2005 10:59:42 +0100 (CET) (envelope-from guru@Sisis.de) From: guru@Sisis.de Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xma004740; Fri, 18 Nov 05 10:59:13 +0100 Received: from rebelion.Sisis.de (rebelion.Sisis.de [193.31.10.34]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id LAA03733; Fri, 18 Nov 2005 11:00:51 +0100 (CET) (envelope-from guru@Sisis.de) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.3/8.13.3/Submit) id jAIA0fbS009398; Fri, 18 Nov 2005 11:00:41 +0100 (CET) (envelope-from guru@Sisis.de) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to guru@Sisis.de using -f Date: Fri, 18 Nov 2005 11:00:41 +0100 To: db Message-ID: <20051118100041.GA8932@rebelion.Sisis.de> References: <200511161611.06437.db@traceroute.dk> <20051117094211.GA5443@rebelion.Sisis.de> <200511171812.23131.db@traceroute.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200511171812.23131.db@traceroute.dk> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE (i386) Cc: questions@freebsd.org Subject: Re: Monitoring a program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: guru@Sisis.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 10:01:13 -0000 El día Thursday, November 17, 2005 a las 06:12:22PM +0000, db escribió: > On Thursday 17 November 2005 09:42, guru@sisis.de wrote: > > with 'lsof' you can see the actual situation; with 'truss' you > > may investigate in detail all sys calls (like opening files) > > Thanks, I also found /devel/strace which looks good :-) Yes, I know strace for a long of time from Linux and was always happy about it because it has better features than truss of SVR4 and FreeBSD; I did not know that it was ported to FreeBSD as well; now I've installed it on my 5.4-REL and there is a small bug which is fixed already, see: http://www.freebsd.org/cgi/query-pr.cgi?pr=62377 without that small patch strace hangs if you fire it up with the command on the commandline like: $ strace date matthias -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/