Re: [Savant-cgi-help] Michael :- Feature request :-
Brought to you by:
lamonml
From: Gordon S. <Gor...@ir...> - 2001-09-28 02:41:27
|
Ive done a quick test of my system :- & have added these to my cgi script - i'll add them at home later - = They'll do for me. :- if ($ENV{SERVER_SOFTWARE} =3D~ !/^savant/ig){ flock(INF,2); } Basically seeing if its a "savant" - & ignoring the flock.. I'll test it further - at home.. However - Would it be better, to test for the HTTP_USER_AGENT ?:- HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; IR-v1.0.0)= ' - & ignoring all 'Windows' ? But i guess theres a 'windows' that works on Linux / Unix systems ? any further ideas ? - To develop 1 system, to work for all users...=20 just a thought.. - I guess i'm the only one using Savant to 'test' on at = home, & comes accross this situation ? G. >>> Michael Lamont <la...@he...> 09/28/01 06:54 >>> On Fri, 28 Sep 2001, [iso-8859-1] gordon stewart wrote: Unfortunately, this isn't a Savant implementation issue so there isn't much I can do about it. The Perl interpreter itself handles these flock requests - Savant just calls the interpreter and hands back either the output from the script or an error message. The UNIX implementations of Perl support flock (mainly because flock() is a native UNIX system call). The version of Perl that ships with Savant is a couple versions older than the most recent - if you haven't already, you might consider going to activestate.com and downloading/installing a newer version. I honestly doubt that any version of Perl on Win32 supports flock, but I've been known to be wrong before about this sort of thing. |