Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Sendmail -> lpr (line printer), multiple sendmail commands?



******    message to minivend-users from "Mr. Christopher F. Miller" <cfm@maine.com>     ******

On Mon, Jan 10, 2000 at 07:04:35PM -0700, Ryan Hertz wrote:
> ******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******


Take advantage of the opportunity to dissociate the processes 
and email the order for real.  Catch it with procmail or .qmail-alias
(depending on your preferences) and print it from there.  You only
need to send that process enough information to find the rest
of the order, depending on how you store it, and it can then
process it and format it as you see fit, completely independantly
of minivend.


That being said, you can print directly from minivend too.  We use
embedded perl in receipt page.  But the email version is much easier
to debug.  ;^)

> Anyone have any ideas on this?   I'm attempting to have MiniVend dump 
> orders directly to a printer for our shipping department, my initial idea 
> is to add:
> 
> SendMailProgram /var/spool/lp/filters/simple | lpr -h -Ppr@printeripaddr
> 
> However, I still need the e-mail sent to billing w/ the cc#s.  How could I 
> have MiniVend run the print job and email?  I'm guessing that I leave 
> SendMailProgram alone and PERL in the lpr command into 
> /ord/report.html.  So, I guess my question is how do I send [scratch 
> order_text] to a system command in PERL from MiniVend?
> 

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: