[Coco] Printing from DW

Gene Heskett gheskett at wdtv.com
Sat Oct 25 23:25:50 EDT 2014


On Saturday 25 October 2014 22:55:26 Nick Marentes did opine
And Gene did reply:
> On 26/10/2014 12:14 PM, Gene Heskett wrote:
> > A wee bit perhaps. ;-)
> > 
> > I have some bash scripts in use here, that take what I send to the /p
> > that is setup in the bootfile as a drivewire channel.  In drivewire,
> > I have it intercept that data and write it to a file, raw just like
> > the coco sent it.
> > 
> > One of the accessories to the script is a setup of inotifywait, one
> > of linux's handier little utils, watching the location directory
> > drivewire saves the file in.  When a file is closed, complete IOW,
> > inotifywait sends my script a message containing the hashed name of
> > the new file.  My script then scans the old jobs directory, deletes
> > the oldest of 25 files, renames the just saved file according to my
> > bookkeeping scheme, and saves it in a second scratch directory, then
> > issues an
> > "lp -dBROTHEHL2140 new name of file".
> > 
> > Cups then processes the text, rendering it for that printer and
> > sending it back down the cable to a hub on the coco3 desk which has
> > this printer sitting on the top shelf.  Its a B&W laser, costs about
> > a 100 $ bill, does 19 pages a minute, and its warming up the drum
> > about 5 seconds after I get my prompt back on the coco from having
> > typed "list filename >/p".
> > 
> > Fastest printer I've ever had on my coco's, and since its a 600 dpi
> > printer, none of the butt ugly 7x9 dot matrix fonts. Beautiful
> > output, 10x faster than ever before.  Music to these old eyes.
> > 
> > There's some earlier versions of what I am running on my web page,
> > but I need to replace them with a tarball containing the latest
> > versions.  In the meantime, you bash hackers can fix whats there to
> > do it your way if you'd like.
> 
> Sounds like a lot of mucking around. Not worth the trouble.
> 
> I'll just use VCC to do the print.
> 
> Nick

True, but this is all automatic.  I start it in the same script that 
starts the dw4 server.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS


More information about the Coco mailing list