From: Bernhard van Staveren <[EMAIL PROTECTED]>
> [snippity]
> 
> > 1. As you can see, my program is going to be running infinitly. 
> > Will this be a problem?  I will probably make this program as a
> > service on win 2000 so it runs right awway when the computer is
> > turned on. 
> 
> It'll waste an awful lot of CPU cycles like that; I'm not sure if
> Win2000 has a scheduler like crontab on a Unix system, but it might be
> better to have it kick off once every few minutes or so from a
> scheduler.

If you schedule the process often enough you burn much more by 
constantly creating and destroying the process and by parsing and 
compiling the script.
 
> > 2. When I check for the "completeness" for the pdf file.  I was
> > thinking of trying to open it, if it fails therefore it is
> > "incomplete".  Since when the file is uploading, the file is open
> > for Write, and when a file is open for Write, then I shouldn't be
> > able to open it right?  Am I right?

I believe sysopen() with proper options could do this. Sorry do not 
know the options.

But it may be easier to open the file for reading. seek to the end 
and see if the last 6 characters are
        "%%EOF\x0D"
(or maybe if the last 7 are "\x0D%%EOF\x0D")

Jenda
P.S.(shameless plug): See 
http://Jenda.Krynicky.cz/#Win32::Daemon::Simple
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to