Rahul Saxena wrote:
we are sending a string to a lpr using

FILE *prn = popen ( "lpr","w");

finally we do a pclose()

this routine get called for some asynchronous event.

the problem is that after every close or new open (  i dont
know ) the lpr gives a page feed  ( or form feed ) and runs
to the next page.

Isn't this as simple as popen()'ing only once and repeatedly writing to it? Perhaps you need to fflush() every time.


-Manish

--
disclaimer: "The statements and opinions expressed here are my
own and do not necessarily represent those of Oracle Corporation."



--


http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to