Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Removing users from a directory

by earthboundmisfit (Chaplain)
on Jan 10, 2003 at 15:29 UTC ( #225822=note: print w/replies, xml ) Need Help??


in reply to Removing users from a directory

You need to define "using the files" more fully. If you simply mean that no other user should have read/write access to the files while User A is doing something to the directory through a Perl script, then file locking by means of a semaphore file is the best way to handle this. If you mean that no one else can have access to the files via any means, you will need to set permissions on an OS level. For Win32, this is done with a module: Win32::FileSecurity

For a good example of semaphore file locking have a look at this node

HTH

---- I am what I read

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://225822]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-07-22 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (454 votes). Check out past polls.

    Notices?