diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/billco-upload | 14 |
1 files changed, 14 insertions, 0 deletions
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 + |