Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Knowing when a file completes.

Reply
Thread Tools

Knowing when a file completes.

 
 
Greg Lindstrom
Guest
Posts: n/a
 
      07-26-2005
I have an odd problem that I'm sure someone here can help me solve. I
am using Python 2.3 on a Linux box to process text files. At one point
in my automated process, I have to zip and ship the files over to a
Windows server running a proprietary package to do some manipulation to
the file. Problem is that I need to know when the process completes
processing the file. Complicating matters is that this package names
the output file using a guid type notation, so I don't have a clue as
the output filename (though I do know the output directory). We have
considered running a query from the Linux box every 10 minutes or so
looking for any "new" files in the windows directory, then monitoring
the size of the files and when they stop growing bring them back to
finish our work, but that doesn't make us feel very good. Is there a
way to run a daemon (or whatever it's called on windows) to detect when
a new file is created in a directory and, more importantly, when it is
"complete" (if that makes sense)?

Thanks for your help.
--greg

--
Greg Lindstrom 501 975.4859 (office)
Senior Programmer 501 219-4455 (fax)
NovaSys Health
Little Rock, Arkansas

"We are the music makers, and we are the dreamers of dreams." W.W.


 
Reply With Quote
 
 
 
 
gene tani
Guest
Posts: n/a
 
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the last modified date of a xml file that on the Internet instead of knowing its content Elliot ASP .Net 3 06-16-2008 05:28 PM
Is it possible to get the last modified date of a rss file without knowing its content using C#? Elliot ASP .Net 1 02-27-2008 01:36 PM
knowing when file is flushed to disk John Pote Python 5 08-10-2006 04:21 PM
knowing a file's own name Scott Frankel Python 0 11-29-2004 05:37 PM
WebRequest - download files from directory without knowing name of file CodeMotion ASP .Net 0 07-03-2003 09:59 PM



Advertisments