1. Re:copy/send file to Multiple PC's
- Posted by brian_keene at yahoo.com Sep 06, 2001
- 410 views
Renzo: What about: 1. Share the folder to the LAN where the copied file is (not the original). 2. Have your application copy the original file to the shared folder. 3. Create a file in that same folder that tells the other 3 PCs that a new data file is ready for processing by its very existance. 4. Have the 3 PCs applications process the file where it sits on the shared folder (don't copy, just process it there). 5. When each of the 3 PCs apps is finished, have it place a file in that shared folder. 6. The app. on the shared folder's PC sits there waiting for all 3 files to appear. When they're all there, delete all 5 files. 7. Check to see if the original file was recreated and if so repeat from step 1. The benefit is that your only doing 1 copy. You can also eliminate the 2 second loop. You only check for a new original file when all of the files have finished with the copied file. You may not have the consistancy of 2 second intervals, but this method will probably eliminate your timing and read/write error problems. Regards Brian Keene --- 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 > > >