On Mon, 19 Jun 2006, dwelch91 wrote: > I am a little concerned in this case about a race condition with the > 'lp' command and the os.remove(). Isn't there a possibility that the > os.remove() will remove the file before 'lp' has had a chance to process > it? That was a real advantage to 'lpr' and the use of -r.
Well, "lp -c" is guaranteed by spec (SuS V2) to return only after all the input files have been completely processed. The spec says explicitly that as long as you use -c, you are free to delete or modify the files as soon as lp returns. I don't think CUPS has bugs in that area, but we can ask CUPS upstream about it... -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh _______________________________________________ HPLIP-Devel mailing list HPLIP-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hplip-devel