i have created a script that works in conjunction with the MS IIS search engine and had a question about file permissions pertaining to the search. i am using the LWP module to open pages, examine the content and decide if they should be displayed. i would like to make it so that when one person submits a search that no one else would be able to try and access the file at the same time, or create different threads that the file runs on to prevent a lock up. how would i go about doing this? is there some code i can add at the beginning of the script to ensure that only one person can access the script at a time or to create multiple search threads? any help is appreciated.