diff options
author | ivan <ivan> | 2005-10-28 17:10:45 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-10-28 17:10:45 +0000 |
commit | 0da0726449c32868963ddace7630892c37cdeb6f (patch) | |
tree | 10c7fb408d66057c004dd219d264f43abbc04e46 /bin | |
parent | f1a6cb69d064ea81e51f6bc29e2cdb7d695980a6 (diff) |
beginning of quick billco zip & upload tool
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 + |