Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does "drain.output" do?

Status
Not open for further replies.

motoslide

MIS
Oct 30, 2002
764
US
This is bugging me, and I cannot find an explanation elsewhere.
We recently upgraded an few existing Clients from OpenServer 5.0.x to OpenServer 6.0.0 (new hardware as well). We started to have printing issues where the last page or so (sometimes more, sometimes less) wouldn't print.
We've been using an in-house lp interface script for the past 15 years which is very basic.
Now, with OpenServer 6.0.0, I have to add the "drain.output" command at the end of the script. This is a very common process to run at end of most interface scripts, but I cannot find information of what it does.
We never needed it in the past.


 
In fact a simple sleep 10 should suffice as the goal is to maintain the file descriptors open while the last characters are sent to the printer.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top