On 4/25/00 5:32 PM Marius Schamschula ([EMAIL PROTECTED]) wrote:
>on 4/25/2000 3:50 PM, Jeremy Wadsack at [EMAIL PROTECTED] wrote:
>
>> Well, I don't know anything about AppleScript, but...
>>
>> If AppleScript starts a new Analog process for each call (in a fork-like
>> way),
>> you should be able to run several processes, each with separate config files
>> concurrently, provided that (a) none are dependent on previous runs (e.g.
>> CACHEOUTFILE, CACHEFILE) and (b) you don't try to DNS WRITE the same dns
>> cache
>> from concurrent processes (this is the only file I know of that would be
>> locked).
>>
>> Of course, I'm assuming that each Analog run outputs to a different output
>> file.
>
>The one-eyed leading the blind. Even though I mainly work on Macs, I do all
>heavy internet lifting under UNIX. I also can't claim to be an AppleScript
>guru, however I do know a thing or two about the MacOS:
>
>The main problem you will run into is one of open files. MacOS locks files.
>You cannot have the same file simultaneously opened by two applications.
>Thus two instances of the same application (a contradiction in terms of a
>Mac) could not open the same log file. However, two threads may share access
>to the same file Handle...
Not quite correct. Most commercial apps for the Mac work this way with
their document files but the MacOS is far more flexible. Analog opens
both configuration files and log files in shared read only mode, which
means any number of copies of Analog can be reading the same log files
even if a web server is writing to those same files at the same time.
As far as applications go, the Finder will convert the second opening of
the application into an AppleScript message, which most applications know
means to open more than one file at once. Analog doesn't know how to open
more than one 'file' at a time so it gives an error on the second open.
Jason
-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------