Do you know where your variables are? | |
PerlMonks |
Open files per process via lsofby grinder (Bishop) |
on May 05, 2004 at 13:33 UTC ( [id://350764]=CUFP: print w/replies, xml ) | Need Help?? |
lsof is a tool to LiSt Open Files. It's a handy tool to have when you need to find out why you can't dismount a device, or see if a process is about to exceed its maximum number of allowed file handles. (Here's the project homepage). But the output is verbose. If you just want the number of open files, and the process name and pid, the following one-liner performs a nice summary.
Back to
Cool Uses for Perl
|
|