[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 Ryan Hertz <rhertz@gyb.baits.com> ******
At 07:46 PM 1/10/2000 , you wrote:
>****** 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. ;^)
Well, because of past problems we want to the box to print the orders all
by itself and not rely on any human intervention. (Currently the orders
are printed from Eudora automatically -- filters) Eudora likes to break,
and doesn't work if it isn't running. :-)
On that same note, the script that Mike posted works wonderfully, that is,
if lpr wouldn't freak out! It is about time for a cold Guinness so I'll
track down the lpr logs tomorrow. From the command line I can print all
day to lpr, the script works if I send it just one line, it breaks if I try
cat file | script. I receive the mail as normal, no problems.
> > 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
Ryan Hertz tel 800-645-BAIT
Webmaster fax 520-645-2588
Advertising Director http://www.insideline.net
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com
-
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