Hi I was trying to write a C program that would print a file on a printer. I think on Linux you need to submit it to lp ( a deamon) . If I intend to bypass the lp commnad where should i write the content of my file i intend to print . I thought of looking at the source code of lp but was unable to find it. Can someone help me out? Any pointers would be of great help. Regards Sumit