fam
[Top] [All Lists]

Re: [fam] monitoring for executing....... how about........

To: fam@xxxxxxxxxxx
Subject: Re: [fam] monitoring for executing....... how about........
From: Waldo Bastian <bastian@xxxxxxx>
Date: Mon, 15 May 2000 22:43:24 -0700
In-reply-to: <10005151928.ZM38149@xxxxxxxxxxxxxxxxxx>
References: <200005141927.MAA22913@xxxxxxxxxxxxxxxxxxxxxxxxxx> <10005151928.ZM38149@xxxxxxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
On Mon, 15 May 2000, you wrote:
> I don't know of a good way to do this.  A not-so-good way for fam to do it
> would be if imon reported when a file was opened & closed; fam could then
> pass that on to clients.  (That would take changes to imon, the interface
> between imon and fam, and the fam API.  The reason it's not so good is that
> you still have the problem of knowing whether the process that just closed
> the file is the same one that was writing to it, whether or not the writing
> process is done, etc.)  

Well, if the file just got created, it is unlikely to be opened by more than 
one process. If the file happens to be used as log-file, it can take quite a 
while before you get the close-event. Never the less, as a user of fam you 
have some more possibilities to do what is right for your particular 
situation.

> Failing that, a not-so-good way for the client
> application to do it would be to always wait a certain amount of time
> between the last Changed event on a file and starting the thumbnail
> generator on the file, but that's so bad, forget I even suggested it.

That's what we currently do :-) 

> [Snap]  I like that, but I have no idea how many image-writing processes
> are that polite.  (I wouldn't be surprised if the answer is "none.")

In our case, I'm not aware of /usr/bin/install doing that.

Cheers,
Waldo



--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>