printer programming
Christos Ricudis
ricudis at paiko.gr
Tue Aug 21 21:37:01 EEST 2001
Hello Nick!
On 20 Aug 01, Nick Apostolakis wrote to All with subject "printer
programming":
NA> tha ithela na kanw mia erwtisi.
NA> mipws kserei kaneis kapoio url-keimeno-howto ktl
NA> sto opoio na perigrafetai pws mporoume na enswmatwsoume
NA> se ena programma mas ypostiriksi ektypwsis?
Nai. Rwtas ton user ti 8elei na kaneis.
Dystyxws den yparxei enas standard tropos ektypwshs sto Unix. Once there was
lpr, alla to SVR4 thn antikatesthse me ena eksairetika mperdemeno ektrwma, poy
legetai lp. Polla SVR4 based systhmata exoyn ena lpr compatibility layer apo
panw, alla oxi ola.
Epeita, den ksereis an kai ti parametrous 8elei na perasei o user sthn lpr. by
default typwnei ston printer "lp", h ston prwto prwto printer poy dhlwneis sto
printcap, h se oti exei dhlwsei o user sthn environment variable $PRINTER. Kai
pali ayto den einai universal, exw dei lpr poy agnooyn to $PRINTER. Fysika, to
lpr pairnei kai merikes dekades alla options, diaforetika ana lpr incarnation,
to default twn opoiwn mporeis na stoixhmathseis oti 8a einai la8os.
Etsi, ftiaxneis ena default printing command toy styl "lpr %s", kai rwtas ton
user an 8elei na to allaksei. Meta to pernas sthn sprintf() h opoia antika8ista
to %s me to filename toy arxeiou. For a real living example, see netscape.
--
Christos Ricudis
In God we trust.
All others must present a valid X.509 certificate.
More information about the Linux-greek-users
mailing list