From ea9edb4e9584a434e074dbc9f604c401784722f5 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 28 Jun 2007 20:57:42 +0000 Subject: [PATCH] add some quick scripts for cron jobs --- bin/bill-as-nextmonth | 5 +++++ bin/bill-as-nextmonth-BILL | 5 +++++ bin/bill-as-nextyear | 5 +++++ bin/bill-as-nextyear-BILL | 5 +++++ 4 files changed, 20 insertions(+) create mode 100755 bin/bill-as-nextmonth create mode 100755 bin/bill-as-nextmonth-BILL create mode 100755 bin/bill-as-nextyear create mode 100755 bin/bill-as-nextyear-BILL diff --git a/bin/bill-as-nextmonth b/bin/bill-as-nextmonth new file mode 100755 index 000000000..813e84193 --- /dev/null +++ b/bin/bill-as-nextmonth @@ -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 index 000000000..91e943110 --- /dev/null +++ b/bin/bill-as-nextmonth-BILL @@ -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 index 000000000..63c4ad2be --- /dev/null +++ b/bin/bill-as-nextyear @@ -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 index 000000000..0d77dd0d6 --- /dev/null +++ b/bin/bill-as-nextyear-BILL @@ -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 -- 2.11.0