projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a223750
)
agentnums 1-3
author
ivan
<ivan>
Tue, 3 Jan 2006 08:45:27 +0000
(08:45 +0000)
committer
ivan
<ivan>
Tue, 3 Jan 2006 08:45:27 +0000
(08:45 +0000)
bin/billco-upload
patch
|
blob
|
history
diff --git
a/bin/billco-upload
b/bin/billco-upload
index
f0adbd8
..
ce4a43d
100644
(file)
--- a/
bin/billco-upload
+++ b/
bin/billco-upload
@@
-1,14
+1,20
@@
#!/bin/sh
#!/bin/sh
+AGENTNUMS="1 2 3"
+
date=`date +"%Y%m%d"`
dir="/usr/local/etc/freeside/export.DBI:Pg:dbname=freeside/cust_bill"
cd "$dir"
date=`date +"%Y%m%d"`
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
+for AGENTNUM in $AGENTNUMS; do
+
+ for a in header detail; do
+ mv agentnum$AGENTNUM-$a.csv agentnum$AGENTNUM-$date-$a.csv
+ done
-
zip $date.zip $date-header.csv
$date-detail.csv
+
zip agentnum$AGENTNUM-$date.zip agentnum$AGENTNUM-$date-header.csv agentnum$AGENTNUM-
$date-detail.csv
-echo $dir/$date.zip
+ echo $dir/agentnum$AGENTNUM-$date.zip
+
+done