On Wed, 21 Dec 2005 17:40, you wrote:
> On 13/12/05, Volker Kuhlmann wrote:
> > > >Possible, but that gives you zero control over the formatting and
> > > >positioning of the text on paper. If you want any control, use the
> > > >system's print system.
> > >
> > > Hmm? How about ls -lR | enscript -2
> >
> > That's not piping the output of ls straight to the printer, that's
> > creating formatted postscript for previewing and printing. What I
> > should have said was "If you want any control, either pipe ls into
> > something which produces postscript, or use the printing system, eg ls
> > | kprinter."
>
> ls | kprinter
> is my preference.
> I tried it just now - kprinter said my printer doesn't support plain
> text and would I like to convert to postscript? I said yes and it
> printed fine, but each filename on a single line. the ls command on
> its own doesn't do that in konsole.
>
> Also, I didn't see a page preview button in kprinter. That would be a
> nice feature.
>
> I think if I needed to format it, I would use Robert's original method
> of saving the output to a file.

Nice!  I just stumbled upon cupsdoprint:

cupsdoprint -P HP myfile.txt

HP is the name of my printer in the CUPS control panel (didn't seem to work 
without that- you'd think it would pick up the default printer).

Andy

Reply via email to