How to check read only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samueln12
    New Member
    • Feb 2009
    • 28

    How to check read only

    Hi ALL,

    I have a MS 2003 server. All my text files are available in the server.

    I have 5 clients attached to the server.

    Now what i want is

    If any client user opens a text file from the server, other client user should be able to know that this file is already opened.

    How to do this in Perl.

    Note: i want to do this client side

    Thanks
    Sam
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Could you keep an active "state-log" for the files?
    It doesn't have to be that fancy, just a text document with the names of the files in use. When the files are no longer in use, remove the name from the file. Or you could use a Database...

    Perl is not executed client side.
    It's executed on the server...
    Besides that, your files are located server side so how is client-side code supposed to know about what's going on server-side without connecting to the sever first?

    I recommend you re-examine your requirements.

    -Frinny

    Comment

    Working...