Mihir Kamdar wrote:
It has to be ASAP Shawn......but if that's not possible, as a workaround
we may also look at every half hour or something like that...
do you have any suggestions in mind?
Well, if I could change anything, I'd change my program to a deamon and have it
listen on a socket. The program that writes these files would, in addition,
request a session with my deamon and send it (via the socket) the entire file.
I would also add to its startup a procedure to cover any lapses it had between
when it last ran and now (optionally, you could turn this off).
If you can't do that, then a loop that sleeps every 4 seconds to check and
update if anything new happens.
1 + 1 = 1, with rounding
1 + 1 = 2, with and without rounding
1 + 1 = 3, with rounding
The modification times (via touch) has a resolution of +/- 1 second. Any sleep
period of less than 4 seconds have the potential of skipping some files or
repeat some files (depending on how it's coded).
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/