[cups.general] Dymo 450 Turbo via CUPS

Helge Blischke h.blischke at acm.org
Fri Feb 8 06:20:54 PST 2013


Viaduct Productions wrote:

> Hi Helge.  How do I incorporate that into a command line?  It works with
> .txt, but I'm coming from the command line.
> 
> Any chance you know how I pipe an address into the lp statement?  I can't
> seem to find anything with regards to that.  I'm not actually coming from
> a file as I want a web app to toss an os_process line (like the statement
> I provided) to the bash shell.  I'm holding the address in a variable, but
> I am not sure how to directly fire text to the lp statement.
> 
> Cheers
> 
> 
> On 2013-02-08, at 5:56 AM, Helge Blischke <h.blischke at acm.org> wrote:
> 
>> On Mac OS X, as your first post seems to state, RTF is handled as
>> follows:
>> text/rtf		application/pdf	33	nstexttopdf
> 
> 
> 
> _____________
> Rich in Toronto

Well, probably CUPS identifies the job as text/plain, as the mime types get lexically sorted for testing.
So, if you explicitely specify the document type, it should work:

lp -d display -o document-format=text/rtf body.rtf

prints OK, and the error_log showl the correct filter chain:
I [08/Feb/2013:15:16:14 +0100] [Job 119] File of type text/rtf queued by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Queued on "display" by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/nstexttopdf (PID 25777)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/cgpdftops (PID 25778)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/pstops (PID 25779)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started backend /usr/libexec/cups/backend/gvdpy (PID 25780)
I [08/Feb/2013:15:19:30 +0100] [Job 119] Completed successfully.

Helge








More information about the cups mailing list