add some quick scripts for cron jobs
authorivan <ivan>
Thu, 28 Jun 2007 20:57:42 +0000 (20:57 +0000)
committerivan <ivan>
Thu, 28 Jun 2007 20:57:42 +0000 (20:57 +0000)
bin/bill-as-nextmonth [new file with mode: 0755]
bin/bill-as-nextmonth-BILL [new file with mode: 0755]
bin/bill-as-nextyear [new file with mode: 0755]
bin/bill-as-nextyear-BILL [new file with mode: 0755]

diff --git a/bin/bill-as-nextmonth b/bin/bill-as-nextmonth
new file mode 100755 (executable)
index 0000000..813e841
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+month=`date +%m`
+nextmonth=`expr $month + 1`
+/usr/local/bin/freeside-daily -d $nextmonth/1/`date +%Y` fs_daily
diff --git a/bin/bill-as-nextmonth-BILL b/bin/bill-as-nextmonth-BILL
new file mode 100755 (executable)
index 0000000..91e9431
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+month=`date +%m`
+nextmonth=`expr $month + 1`
+/usr/local/bin/freeside-daily -d $nextmonth/1/`date +%Y` -p BILL fs_daily
diff --git a/bin/bill-as-nextyear b/bin/bill-as-nextyear
new file mode 100755 (executable)
index 0000000..63c4ad2
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+year=`date +%Y`
+nextyear=`expr $year + 1`
+/usr/local/bin/freeside-daily -d 1/1/$nextyear fs_daily
diff --git a/bin/bill-as-nextyear-BILL b/bin/bill-as-nextyear-BILL
new file mode 100755 (executable)
index 0000000..0d77dd0
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+year=`date +%Y`
+nextyear=`expr $year + 1`
+/usr/local/bin/freeside-daily -d 1/1/$nextyear -p BILL fs_daily