Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #14377
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Tim Watts <tw_usenet@dionic.net> |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: How do you access the printer in Linux/C? |
| Date | Tue, 07 Apr 2015 12:24:36 +0100 |
| Lines | 36 |
| Message-ID | <kcrcvb-e18.ln1@squidward.dionic.net> (permalink) |
| References | <e26c3cbd-0f45-4069-b449-423c5759573c@googlegroups.com> <b6vbvb-itu.ln1@squidward.dionic.net> <87lhi4b5uv.fld@barrow.com> <b6ocvb-gg5.ln1@squidward.dionic.net> <mg0cro$iu6$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net fAQC3J537JLxCLEPytsvsQUGsP+2vLGDBDgB7Kitdw7gcvGSF6 |
| X-Orig-Path | squidward.dionic.net!not-for-mail |
| Cancel-Lock | sha1:c5BdMyirTvmDF/3sRgwKGeFy5zQ= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
| In-Reply-To | <mg0cro$iu6$1@news.albasani.net> |
| Xref | csiph.com comp.os.linux.misc:14377 |
Show key headers only | View raw
On 07/04/15 11:51, The Natural Philosopher wrote: > On 07/04/15 11:30, Tim Watts wrote: >> I don't know how old the OP is, but it's also worth recalling the days >> of MS-DOS when the "OS" (and I use the term loosely) had no concept of a >> printer beyond presenting a raw character IO type device. >> >> Every application had to have its own bundle of print drivers and it was >> a right PITA if one app did know know about a particular printer. >> >> I'm with you totally in that noone should ever try to replicate that! > > I think we all agree on that, the more relevant question is at what > level should the programmer tap into the whole cups process? On a side note I find it hugely ironic that Android (at least pre Kitkat) did not bother with a printing subsystem either - and neither do the apps. So you have a huge kludge of installing a random app that knows about your printer and understands some random subset of document formats. > The quickest and simplest is to write the file to stdout or a tmp > location and invoke a system() type call to handle it as a separate > process. Personally, I'd stick with this - it's the unix way and it makes it possible to specify the spawned command (and optionally args) in a config file. > Next up from that is to write the file and use the cups API to print it > with no system call needed. > > Finally you can hack the CUPS source to write to a socket connected > CUPSD directly without needing an intermediate file.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How do you access the printer in Linux/C? pureheart@pacbell.net - 2015-04-06 17:07 -0700
Re: How do you access the printer in Linux/C? Tim Watts <tw_usenet@dionic.net> - 2015-04-07 04:23 +0100
Re: How do you access the printer in Linux/C? The Natural Philosopher <tnp@invalid.invalid> - 2015-04-07 05:46 +0100
Re: How do you access the printer in Linux/C? floyd@apaflo.com (Floyd L. Davidson) - 2015-04-07 02:16 -0800
Re: How do you access the printer in Linux/C? Tim Watts <tw_usenet@dionic.net> - 2015-04-07 11:30 +0100
Re: How do you access the printer in Linux/C? The Natural Philosopher <tnp@invalid.invalid> - 2015-04-07 11:51 +0100
Re: How do you access the printer in Linux/C? floyd@apaflo.com (Floyd L. Davidson) - 2015-04-07 03:11 -0800
Re: How do you access the printer in Linux/C? The Natural Philosopher <tnp@invalid.invalid> - 2015-04-07 12:37 +0100
Re: How do you access the printer in Linux/C? pureheart@pacbell.net - 2015-04-07 08:31 -0700
Re: How do you access the printer in Linux/C? Tim Watts <tw_usenet@dionic.net> - 2015-04-07 12:24 +0100
Re: How do you access the printer in Linux/C? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-04-07 16:26 +0000
Re: How do you access the printer in Linux/C? The Natural Philosopher <tnp@invalid.invalid> - 2015-04-07 11:46 +0100
Re: How do you access the printer in Linux/C? Unknown <dog@gmail.com> - 2015-05-06 08:50 +0000
Re: How do you access the printer in Linux/C? Joe Beanfish <joebeanfish@nospam.duh> - 2015-05-06 13:36 +0000
Re: How do you access the printer in Linux/C? Unknown <dog@gmail.com> - 2015-05-08 10:44 +0000
Re: How do you access the printer in Linux/C? Joe Beanfish <joebeanfish@nospam.duh> - 2015-05-08 13:51 +0000
Re: How do you access the printer in Linux/C? William Unruh <unruh@invalid.ca> - 2015-05-08 14:58 +0000
Re: How do you access the printer in Linux/C? Joe Beanfish <joebeanfish@nospam.duh> - 2015-05-11 13:24 +0000
Re: How do you access the printer in Linux/C? Robert Heller <heller@deepsoft.com> - 2015-05-11 14:40 -0500
Re: How do you access the printer in Linux/C? William Unruh <unruh@invalid.ca> - 2015-05-08 14:55 +0000
Re: How do you access the printer in Linux/C? The Natural Philosopher <tnp@invalid.invalid> - 2015-04-07 05:43 +0100
Re: How do you access the printer in Linux/C? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-04-07 12:15 -0400
Re: How do you access the printer in Linux/C? pureheart@pacbell.net - 2015-04-09 15:39 -0700
csiph-web