Re: Monitoring a program
On Friday 18 November 2005 10:00, [EMAIL PROTECTED] wrote: > El día Thursday, November 17, 2005 a las 06:12:22PM +, db escribió: > > On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] 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; I'm really looking forward to dtrace being part of freebsd. Anyone knows when this will happen? (are we talking 6.x or 7.0?) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Monitoring a program
El día Thursday, November 17, 2005 a las 06:12:22PM +, db escribió: > On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Monitoring a program
On Thursday 17 November 2005 09:42, [EMAIL PROTECTED] 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 :-) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Monitoring a program
On Thursday 17 November 2005 09:32, you wrote: > You can take a snapshot of files being used by lsof: > Port: lsof-4.76.1.1 > Path: /usr/ports/sysutils/lsof > Info: Lists information about open files (similar to fstat(1)) > Maint: [EMAIL PROTECTED] > B-deps: > R-deps: > WWW:http://people.freebsd.org/~abe/ > > Hope this will help you :) Well, the build fails, but thanks (I will notify the maintainer) :-) br db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Monitoring a program
El día Thursday, November 17, 2005 a las 11:32:31AM +0200, Ivailo Tanusheff escribió: > You can take a snapshot of files being used by lsof: > Port: lsof-4.76.1.1 > Path: /usr/ports/sysutils/lsof > Info: Lists information about open files (similar to fstat(1)) > Maint: [EMAIL PROTECTED] > B-deps: > R-deps: > WWW:http://people.freebsd.org/~abe/ > > Hope this will help you :) with 'lsof' you can see the actual situation; with 'truss' you may investigate in detail all sys calls (like opening files) 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/~guru/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Monitoring a program
You can take a snapshot of files being used by lsof: Port: lsof-4.76.1.1 Path: /usr/ports/sysutils/lsof Info: Lists information about open files (similar to fstat(1)) Maint: [EMAIL PROTECTED] B-deps: R-deps: WWW:http://people.freebsd.org/~abe/ Hope this will help you :) Ivailo Tanusheff Senior System administrator ProCredit Bank (Bulgaria) AD db <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/16/2005 06:11 PM To [EMAIL PROTECTED] cc Subject Monitoring a program Hi all I would like to know what files a program access during it's life time (and maybe also the internet connections it makes), how should I do this? I have considered fstat, find, ktrace and searching the source or binary for path strings, but I guess I need a hook for open(). I'm running 5.4 on a ia32, but if there is a 6.x only program it is also welcome. Best regards db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Monitoring a program
Hi all I would like to know what files a program access during it's life time (and maybe also the internet connections it makes), how should I do this? I have considered fstat, find, ktrace and searching the source or binary for path strings, but I guess I need a hook for open(). I'm running 5.4 on a ia32, but if there is a 6.x only program it is also welcome. Best regards db ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"