#!/bin/sh

# Adds the program to user's cronjobs.

BIN_DIR="/usr/bin/"
PROGRAM="check_websites"

# Copy the program.
sudo cp $PROGRAM $BIN_DIR$PROGRAM

TO_CRON="/usr/bin/$PROGRAM"

# Add to user's cronjobs.
(crontab -l; echo "$TO_CRON") | crontab -


#!/bin/sh

# Adds the program to user's cronjobs.

CRON_TIME="@hourly"
BIN_DIR="/usr/bin/"
PROGRAM="check_websites"

# Copy the program.
sudo cp $PROGRAM $BIN_DIR$PROGRAM

TO_CRON="$CRON_TIME $BIN_DIR$PROGRAM"

# Add to user's cronjobs.
(crontab -l; echo "$TO_CRON") | crontab -


Install script uses more variables
Install script uses more variables
