l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Sep 18 01:26

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Printouts cliped, how to fix?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Printouts cliped, how to fix?

The printer was probably waiting for the paper eject command (ASCII #12,
"Form Feed"), then it timed out and ejected the queued page.  To print
directly to the raw device, first send the file to the printer like this:

   cat file.txt > /dev/lp0

then send paper eject command ("form feed") to the printer like this:

   echo '<Ctrl-V><Ctrl-L>' > /dev/lp0

where "Ctrl-V" and "Ctrl-L" are Ctrl key combination, typed under BASH.

On a separate note, when you print using `ls | lpr`, and then you print
using `ls > /dev/lp0 && echo '<Ctrl-V><Ctrl-L>' > /dev/lp0`, do you notice
any difference besides the text not being cut off on the top and right?
For example, is the text shifted to the left or the bottom?

Good nite!


On Wed, 18 Sep 2002, Peter Jay Salzman wrote:

> begin Ryan <ryan@mother.com>
> > Hash: SHA1
> >
> > On Tuesday 17 September 2002 11:56 pm, Ryan wrote:
> > > On Tuesday 17 September 2002 11:52 pm, Peter Jay Salzman wrote:
> > > > ryan,
> > > >
> > > > what happens when you send text to the raw device?
> > >
> > > loads a page, doesn't print anything.
> >
> > for 10 minutes....
> i can't imagine printing being any faster by accessing the raw device;
> you've bypassed the spooler.  something wierd is happening.
> does messages say anything wierd about parport driver?
> > then it printed without mucking up the edges.
> ok, this is what i thought it would do.
> grasping at straws...
> maybe you can rig up an input filter to make a copy of the job once it's
> spooled.  queue the job with lpr and compare the post spooled version
> with the original job.  prolly a fruitless endeavour, but all i can come
> up with.
> are you using cups or lprng?  i've never used either one.  maybe they do
> some filtering not explicitly mentioned in printcap?
> pete
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

Mark K. Kim
PGP key available upon request.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.