[LUGOS] Tiskanje
Metod Kozelj
metod.kozelj at lugos.si
Thu Mar 13 10:39:37 CET 2003
Howdy!
Goran Kavrecic wrote:
>A ni nič enostavnega, recimo, da bi poslal direkt "lpd".
>
lpd vzame tudi robo s stdin. Torej odpri pipe.
V shellu to izgleda nekako takole:
cat "file.pcl" | lpr -Pepson
V C-ju pa recimo (mogoče celo deluje?):
#include <stdio.h>
...
FILE *print_fp;
...
print_fp=popen("lpr -Pepson", "w");
fwrite(buffer, size, sizeof(char), print_fp);
pclose (print_fp);
...
--
Peace!
Mkx
---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
More information about the lugos-list
mailing list