MiniVend Akopia Services

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

Re: [mv] Backend Orders



At 12:51 PM 11/29/1999 , you wrote:
>******    message to minivend-users from Martyn Wilson 
><martyn@enteronhome.com>     ******
>
>Dear list members,
>
>I have been trying to redirect the standard mv backend order stuff.
>
>This is the catalog.cfg section:
>
>########### AsciiBackend
>##
>## Default: blank
>#
># A file name to log order fields in (set by BackendOrder).
># Unless preceded by a leading '/', will be placed relative to VendRoot.
># If the first character is a '|', it is the name of a program to send the
># fields to.
>#
>AsciiBackend         |~martyn/scripts/backend.pl
>
>I have mv call a script to write to the backend.asc file.  This script
>is very straightforward so far, testing the process.
>
>This is the script:
>
>#!/usr/bin/perl -w
>
># script: backend.pl
>
>use strict;
>
>my ($PATH) = "/catalogs/harrell/etc";
>
>open (ORDERS,"$PATH/backend.asc") || die "cannot open: $!";
>open (MASTER,">>$PATH/master.asc") || die "cannot open: $!";
>
>print scalar(@ARGV), "\n";
>foreach (@ARGV) {
>         print ORDERS $_;
>}
>
>and this is the error it generates:

         The path your error shows is different than the PATH you're trying 
to set.  Maybe it is a reserved word?  It would probably be a good idea to 
close the files manually (in perl).



>mail.enteron.net 5StS83Pp:enteron.net - [29/November/1999:14:37:46
>-0600] harrel
>l /cgi-bin/harrell/process Could not close
> >  log file '~martyn/scripts/backend.pl':
> > to log this data:
> > 
> 000069        asdf    asdf    asdf    asdf    CA      12345           mc xxxx
>xxxxxxxxxxxx xx/xx
> >       SSNA4   1
>
>Is this a configuration issue or am I doing something really daft?
>--
>Martyn Wilson
>Web Development
>The Enteron Group
>(312) 922 8816
>-
>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



Search for: Match: Format: Sort by: