Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Counting open files?

by Eyck (Priest)
on Jun 22, 2005 at 12:40 UTC ( [id://468981]=note: print w/replies, xml ) Need Help??


in reply to Re: Counting open files?
in thread Counting open files?

Generally, if you're not affraid of 'outside', you can use proc fs popular in many unices:
opendir(D,"/proc/$$/fd/"); while ($fd=readdir(D)) { print "I've got this descriptor opened: $fd"; };
and then, you could use BrowserUK's POSIX::close to close it;

But this is not very portable, works on linux with procfs mounted, as soon as you move to win32, you're in trouble.

I wanted something working from inside

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://468981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found