On Mon, 3 Mar 2003, Joel Hammer wrote:
> No expert here but:
> I assume that open office will create the ps or pdf file. You just need a
> raw filter that will dump to to a file?
>
> This is what I use to print a text version to a file:
>
> In /etc/printcap:
>
>
> text:\
> :sd=/var/spool/lpd/text:\
> mx#0:\
> :lp=/var/spool/lpd/text/textprint:\
> :if=/var/spool/lpd/text/filter:\
> :sh:
>
> Now, note I have a "if" parameter. This filter converts ps and pdf
> files to text. You would leave that out. If for some reason you have
> to have a dummy filter, "cat" may be all you need in a shell script.
> The file in "lp" needs to be permissive for the printer daemon. Putting
> it in the spool directory and running checkpc -f takes care of that but
> if you use /tmp or other location you may have permissions problems,
> which are easy to solve.
Thanks a lot, I've created a spool directory /var/spool/lpd/file for it.
I fixed the permissions and it printed ok to the specified file, however
the job hanged somehow in the queue. The files, that are normally sent to
the printer and then cleaned, were still there (named h*, c*, f*).
Could you point out how to get rid of them ?
Regards
Tomas
E-mail : [EMAIL PROTECTED],
[EMAIL PROTECTED]
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------