[LCP]Printing problem

Francisco Hallo fhallo at server.epn.edu.ec
Sat Oct 20 04:20:07 UTC 2001


Hi there,

Here I come again, but this time with something concrete about the
printing isue:

I did  the following:

#cat /etc/hosts  >  /dev/lp1

It worked fine I got the print out inmediately.

I compiled and ran as root  the following program:

#include <fcntl.h>
#include <stdio.h>
main(){

int i, prnt;


prnt=open("/dev/lp1",O_WRONLY);
write(prnt,"Hallo , world! \n");
close(prnt);
}

Nothing came out to the printer, nothing in lpq either .


Any hint about what is wrong with it? .

Best regards,


Francisco




More information about the linuxCprogramming mailing list