Re:copy/send file to Multiple PC's
- Posted by thinkways at YAHOO.COM Sep 09, 2001
- 495 views
I would try to have a server process running that keeps track of the end of file location on closing the file, then sleeps, wakes up and gets the new file location, reads the chunk of data between the new and previous end, then opens up a winsock port to let a client read the next chunk and append to their own logfile copies. --- brian_keene at yahoo.com wrote: > > --- Renzo Beggia <1213 at pandora.be> wrote: > > > > The source application is making a text file that > has a lot of text > > lines (strings) the name is fixed : 'vskprt.log' > (i can't change > > that) > > it is an alarmlog and it gets updated a lot. > > when i move it , the source applicaion creates a > new file with the > > same > > name.(no problem so far) > > The problem is to copy that file to multiple > destinations because > > once > > there the file gets read by my application and i > get read/write > > errors. > > > > isn't there another better way ? > > for example send a signal to my program when the > file can be taken or > > > > not ? how can i do that (the progs are not on the > same PC) > > > > Euphoria has no threads , so i probably can't > check all the time for > > a > > signal.(udp?) > > > > in short: file1 gets moved to file2 on other path, > file2 gets copied > > to > > file3,4,5 or other paths on 3 other PC's an then > file2 gets > > deleted.the > > other pc's read and process the content of > file3,4,5 (may take 5 > > sec's > > because its a 5Kb file sometimes) and then delete > file3,4,5. > > > > What i want to do is just have the 3 or more PC's > in a IP network > > process the same content of 1file and then (once > read by all) delete > > it. > > > > thanks for any help > > Renzo from Belgium > > > > > > >