Re: [SLUG] A simple script and printing question (?)

From: Richard Morgan (rmorgan@heavysystems.com)
Date: Thu Apr 13 2006 - 09:38:18 EDT


Quoting Macy1 Hallock <macy1@hallock.net>:

> Both Eben and Wayne suggested using a named pipe, which I thought
> would be a good solution. However, it does not work, error message
> returned by cups is
>
> lpr: unable to print file: client-error-bad-request
>
> I also tried lp since it handles stdin slightly differently with the
> same error msg returned.
>
> Still looking for a solution... any suggestions welcomed.

What about redirecting stdout to the printer device and then simply cat the
file?

exec > /dev/lp0 (or whatever the printer device is)
exec 2>&1
cat filename.txt

-Rich

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:27:40 EDT