Skip to content

Instantly share code, notes, and snippets.

@mptrs
Created December 6, 2012 08:50
Show Gist options
  • Save mptrs/4222936 to your computer and use it in GitHub Desktop.
Save mptrs/4222936 to your computer and use it in GitHub Desktop.
Cronjob script for updating spotweb
#!/bin/sh
# Cronjob script for updating spotweb
#
# Author: J. van Emden (Brickman)
# Latest version: http://dl.dropbox.com/u/5653370/synology.html
#
# Version:
# 2011-11-26:
# - Initial release
#
# Directory where to store the log file
LOG_DIR="/volume1/homes/admin/Logs";
# Spotweb only folder
SPOT_LOG_DIR="${LOG_DIR}/spotweb";
LOG_TIME=$(date +%Y_%m_%d_%H_%M);
SPOT_LOG_FILE="${SPOT_LOG_DIR}/upd_${LOG_TIME}.log";
##########################################
##########################################
## Do not edit after this line! ##
##########################################
##########################################
if [ ! -d $SPOT_LOG_DIR ]; then
mkdir -p $SPOT_LOG_DIR
fi
sh /volume1/@appstore/scripts/spotweb_upd.sh > $SPOT_LOG_FILE 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment