Skip to Content.
Sympa Menu

baslinux - Re: [BL] double sided printing script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] double sided printing script
  • Date: Fri, 24 Mar 2006 02:47:05 +0000 (UTC)


for i in *.ppm; do ppmtopgm $i | pgmtopbm | pamcut -75 top > $i.pbm; done

Bleach produced par5-00001.ppm.pbm.
Is there a simple way to remove the ppm from the file name
by adding something to the above script?

Instead of: > $i.pbm; done
Try this: > ${i%.*}.pbm; done

I will try it some time.

That is: dollar open-curly i percent period asterisk close-curly

There's some quite powerful stuff hiding in BL3. :-)

This is good to know. But with the -mono switch for pdftoppm I don't need to change the ending, it is automatically generated as .pbm no.


Cheers,
Steven

New problem. My script is printing the default 75 dpi instead of -res 300 as instructed. I ended up making a new script consisting of multiple copies of the command that prints each file, changing the file name on each line. I think what did not work was:

for i in *[1,3,5].pbm; do pbmtolj -res 300 $i > /dev/lp0; done

It ignored the -res 300

I did not yet try David's suggested script, not expecting the resolution to work any better with it.

What did work was:
pbmtolj -res 300 filename1.pbm > /dev/lp0

I made a script with 10 copies of this, each with different file number.

I printed 10 odd pages, then printed the even pages on the back, hand feeding them all because the paper feeder is feeding all the paper at once again. My partner wants to try replacing the sanded pads with rubber from some rollers out of a recycled printer. It worked for a few pages, same as when he cleaned the pads.




Archive powered by MHonArc 2.6.24.

Top of Page