From: Roy P <or...@sh...> - 2007-01-16 04:14:24
|
Hello Jeff... Here is an old post from the list: =2D--------- This is ugly but it works, create 2 cups printers, create a samba=20 printer that prints to both of them, create a cups printer that prints=20 to the samba printer. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-->Cups Printer 1 Cups printer 3 -> samba printer / =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\--> Cups Printer 2 The =A0samba printer uses print command =A0=3D =A0lpr -PPrinter1 %s/%f && lpr -P printer2 %s/%f This is roughly how it goes, I made it work on another system years ago,=20 you will have to sort the details. Or you could do a trick with the pipe to printer in sql-ledger.conf =2D-------------------- I didn't get around to try this myself.... Hope this helps. Roy On Monday 15 January 2007 21:11, Jeff Roberts wrote: > Hello All > > When I print an invoice I would like one copy to come out of my inkjet > in full colour for the customer and two copies should come out of my > laser for filing. Currently I find myself having to print to the inkjet > then back up one page, select laser, change the amount to two and print > again. I know this is not a lot of work but If I print 1000 invoices > this year it's going to drive me nuts. > > I've tried playing around with the .conf file to create a printer called > "invoice" with commands to do this without any luck. Does anyone know > the syntax to put two print commands together so they execute one after > another? > > I've tried: > > Invoice =3D> 'lp -d InkJet, lp -d Simplex -n 2', > Invoice =3D> 'lp -d InkJet; lp -d Simplex -n 2', > Invoice =3D> 'lp -d InkJet: lp -d Simplex -n 2', > Invoice =3D> lp -d InkJet and lp -d Simplex -n 2'. > Invoice =3D> lp -d InkJet & lp -d Simplex -n 2', > Invoice =3D> lp -d InkJet -d Simplex -n 2', > > and maybe a couple of others, no luck so far. > > Jeff Roberts > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn ca= sh > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users |