Greg (or anyone else too!) Here is a link to the code I created and my printing system. http://openforum.worldvista.org/~forum/index.php?title=Setting_up_a_Linux_Printer
It looks like I used a unique file name for each print job. So that doesn't seem to be the problem. Could you look at the code and see if I need to restructure it? Its short, so shouldn't take but a minute. Thanks! Kevin On 12/2/05, Greg Woodhouse <[EMAIL PROTECTED]> wrote: > --- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote: > > > A feature of POSIX (implemented by UNIX/Linux) is that the normal > > file > > access behavior is that multiple processes are allowed to write into > > a > > file ... > > > > Bhaskar is right here. There are special situations where you might > want to allow multiple processes to write to a file they simultaneously > have open (e.g., a log file) but this is rare, and I don't think I've > ever needed to do this. But GTM is doing the right thing here. > > > I strongly recommend that multiple GT.M processes not write to the > > same > > file. > > As do I. If you really only want one file, you need to look at lockf() > or flock(), but I don't think this is what you want, either. Stevens' > book on "Advanced Unix Programming" (which has now grown quite thick) > is an excellent reference here. > > > What exactly is the desired behavior from a functional point > > of > > view? > > > > -- Bhaskar > > > > > === > Gregory Woodhouse <[EMAIL PROTECTED]> > "Interaction is the mind-body problem of computing." > --Philip L. Wadler > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members