Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File rights?

Status
Not open for further replies.

harley

IS-IT--Management
Jun 27, 2000
1
US
For some time now I have been quietly lurking and absorbing knowledge from the masters gathered here. I've used
that knowledge to create a search engine for our library. Everything seems to work fine except for when several people try to access
it at once. Then they get the following error:

Software error: Cannot open h:/crc/cgi-bin/jsearch/database/files: at H:\crc\cgi-bin\jsearch\jsearch.cgi line 54.

The line in question is this:
tie %f_file_db, $dbm_package, $F_FILE_DB_FILE, O_RDONLY, 0755 or die "Cannot open $F_FILE_DB_FILE: $!";

The engine uses DB_File for database access.
The file(s)in question are files created by an indexing program.

I'm running Perl version 5.005_03 on an NT 4.0,IE 4.0, serv pak 6, server. It seems to be a rights issue but everything seems
correct at the server level. Any ideas?

Hope I've given you enough info.

HDrider
Work to Ride and Ride to Work
 
HDrider,

Have you checked out the flock() function so that you can coordinate access to the DB file? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top