projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1a6cb6
)
beginning of quick billco zip & upload tool
author
ivan
<ivan>
Fri, 28 Oct 2005 17:10:45 +0000
(17:10 +0000)
committer
ivan
<ivan>
Fri, 28 Oct 2005 17:10:45 +0000
(17:10 +0000)
bin/billco-upload
[new file with mode: 0644]
patch
|
blob
diff --git a/bin/billco-upload
b/bin/billco-upload
new file mode 100644
(file)
index 0000000..
b224605
--- /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
+