Gossamer Forum
Home : Products : DBMan : Installation :

DBman on a MAC intranet server

Quote Reply
DBman on a MAC intranet server
Hi,

My ultimate goal is to get Dbman up and running on a macintosh server running webstar 2.1. However, before I do this I am testing the scripts on a mac running ie 4.5 personal web server and it has MacPerl 5.2.0 r4 on it aswell.

I get to the screen to add a new record and the following error is produced (see below). I'm not sure what it means. I'm a newbie to Perl, although I do have other perl scripts, including DBman running on a NT 4.0 IIS 3.0 server at home (my study machine). I realize that with standard appleshare I can not set specific file permissions so the whole directory is read and write. I know more about NT than Mac servers but at work I have know choice. Planning to install a unix server soon. So am I just waisting my time with the mac.

please advise.

CGI ERROR
==========================================
Error Message : fatal error: # The flock() function is unimplemented.
File 'Hard Disk:Applications:MacPerl:dbman:db.cgi'; Line 756

Script Location : Hard Disk:Applications:MacPerl:dbman:db.cgi
Perl Version : 5.004
Setup File : default.cfg
User ID : default

------------------
Peter Filopoulos
http://www.tc4.com/
admin@tc4.com
Quote Reply
Re: DBman on a MAC intranet server In reply to
In your .cfg file, set $db_flock = 0.


------------------
JPD





Quote Reply
Re: DBman on a MAC intranet server In reply to
Thanks,

Works just fine now.

------------------
Peter Filopoulos
http://www.tc4.com/
admin@tc4.com
Quote Reply
Re: DBman on a MAC intranet server In reply to
Thanks,

Works just fine now.

------------------
Peter Filopoulos
http://www.tc4.com/
admin@tc4.com
Quote Reply
Re: DBman on a MAC intranet server In reply to
Peter,

A point to note about flock(). flock() is perl's file-locking mechanism. When you open a file for reading or writing, perl locks it so that other users can't modify the file while your process is working on it. If you remove flock(), you're increasing your chances of your data files becoming corrupted.

If dbMan is to be used live as an application open to many users, you will really need to implement some alternative to flock() in the script. And don't ask me how, I can't help you there, you'll have to read up on file locking procedures to help you with that.

Sorry to be a wet blanket, but I thought it might be relevant.

adam
Quote Reply
Re: DBman on a MAC intranet server In reply to
Yes,

I figured that much which leads me to a question I posted:

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000360.html

This leads me to consider running this program on a computer with file level security like unix or Nt.

thanks,

------------------
Peter Filopoulos
http://www.tc4.com/
admin@tc4.com