Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: Print PostScript File


  • Subject: lug-bg: Print PostScript File
  • From: vtzankov@xxxxxxxxxxx (Valentin Tzankov)
  • Date: Wed, 06 Nov 2002 10:32:00 -0500



Opitvam se da napisha programa kojato da izprashta postscript file na printera
izpolzvajki
slednija code.

int fd = open("/dev/lp0", O_WRONLY);
write ( fd, buffer, beffer_length);
close(fd);

no printera ne razbira che e posscript i petchata tzelija script,
v systoto vreme kato zapisha scripta vyv file(printMe.txt) i napisha
cat printMe.txt > /dev/lp0
vsichko e nared

Njakoj da ima njakakva idea, kakvo byrkam.

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.