@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+
+NAME=""
+COMMAND_FILE=""
+ENV_FILE=""
+MAIL_NOTIFICATION=""
+NOTIFICATION_SCRIPT=""
+PID=$$
+USAGE="Usage: `basename $0` [-h] [-n name] [-e env-file] [-m mail-address] [-N notifier]"
+while getopts hn:e:m:N: OPT; do
+ case "$OPT" in
+ h)
+ echo $USAGE
+ exit 0
+ ;;
+ n)
+ NAME=$OPTARG
+ e)
+ ENV_FILE=$OPTARG
+ m)
+ MAIL_NOTIFICATION=$OPTARG
+ N)
+ NOTIFICATION_SCRIPT=$OPTARG
+ \?)
+ echo $USAGE >&2
+ exit 1
+ esac
+done
@@ -0,0 +1,17 @@
+JOB=$1
+COMMANDFILE=$2
+ADDRESS=$3
+mkdir -p "~/jobs/${JOB}"
+/bin/sh "$COMMANDFILE" | tee "~/jobs/${JOB}/output"
+mail -s "Your Job is Complete" -a "~/jobs/${JOB}/output" "${ADDRESS}" <<EOF
+The output of the command file is attached.
+JOB=${JOB}
+COMMANDFILE=${COMMANDFILE}
+ADDRESS=${ADDRESS}
+EOF
@@ -0,0 +1,3 @@
+#!/bin/sh
+linphone "sip:$1@magnum.axvoice.com"