In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Question for the C crowd: I have a program which I wish to print an ordered >text file. In the Linux Programmers Guide, the printer chapter shows how to >directly talk to the printer port. I'd like to be able to send the text to the >appropriate printer filter (and spooler). How would one go about doing that?
FILE *fp; fp = popen("lpr", "w"); fprintf(fp, "Hello world\n"); pclose(fp); See the manual page for popen() Mike. -- Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed [EMAIL PROTECTED] | awake all night wondering if there is a doG -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .