From 0da0726449c32868963ddace7630892c37cdeb6f Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 28 Oct 2005 17:10:45 +0000 Subject: [PATCH] beginning of quick billco zip & upload tool --- bin/billco-upload | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bin/billco-upload diff --git a/bin/billco-upload b/bin/billco-upload new file mode 100644 index 000000000..b224605bf --- /dev/null +++ b/bin/billco-upload @@ -0,0 +1,14 @@ +#!/bin/sh + +date = `date` +dir = /usr/local/etc/freeside/export.DBI:Pg:dbname=freeside/cust_bill +cd $dir + +for a in header detail; do + mv spool-$a.csv $date-$a.csv +done + +zip $date.zip $date-header.csv $date-detail.csv + +echo $dir/$date.zip + -- 2.11.0