MiniVend Akopia Services

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

Backend Orders



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:

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


Search for: Match: Format: Sort by: