[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [MISC] Tip: find processen, der bruger et givent dir



Ole Tange <sslug@sslug> writes:

> # ls -l /proc/*/cwd|grep /usr/src/postgresql-7.2.1/
> lrwxrwxrwx    1 postgres postgres        0 Apr 30 03:49 /proc/3943/cwd ->
> /usr/src/postgresql-7.2.1/
> lrwxrwxrwx    1 postgres postgres        0 Apr 30 03:49 /proc/3944/cwd ->
> /usr/src/postgresql-7.2.1/
> lrwxrwxrwx    1 postgres postgres        0 Apr 30 03:49 /proc/3950/cwd ->
> /usr/src/postgresql-7.2.1/

Bør det være nok?

Skal du ikke også skulle dræbe processer der har åbne filer på det
aktuelle filsystem.

Altså også lige tilføje /proc/*/fd til din ls?

-- 
 Peter Makholm     |              Emacs is the only modern general-purpose
 sslug@sslug |               operating system that doesn't multitask
 http://hacking.dk |                                                      


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:28 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *