All pastes #913963 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-22 14:32 UTC
rendered paste body
#!/bin/bash
#This script gives Accounting the warm fuzzies about backups.

contact="email@email.com"
email="email.txt"
date=`date '+%Y%m%d'`
time1="11"
RANDOM=`date '+%s'`
time2=$(($RANDOM%20+10))
time="$time1:$time2"

echo "MAS90 Backup Report" > $email
echo "Begin Time: 10:00 PM" >> $email
echo "End Time: $time AM" >> $email
echo "Status: Backup Complete" >> $email
mail -s "MAS90 Backup" $contact < $email