Created
December 6, 2012 08:49
-
-
Save mptrs/4222932 to your computer and use it in GitHub Desktop.
Check for new spots for Spotweb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check for new spots for Spotweb. | |
# | |
# Author: J. van Emden (Brickman) | |
# Latest version: http://dl.dropbox.com/u/5653370/synology.html | |
# | |
# Thanks to: | |
# Mar2zz - http://mar2zz.tweakblogs.net/blog/6724/spotweb-als-provider.html | |
# | |
# Version: | |
# 2011-11-21: | |
# - Added some extra output to the script | |
# | |
# Enter path to spotweb | |
PATH_TO_SPOTWEB=/volume1/web/spotweb | |
PATH_TO_PHP=/usr/bin/php | |
echo "======================" | |
echo -n `date +%Y-%m-%d\ %H:%M` | |
echo ": Starting retrieval of new spots for Spotweb" | |
echo "" | |
# Goto to spotweb dir | |
cd $PATH_TO_SPOTWEB | |
# Retrieve the new spots | |
$PATH_TO_PHP retrieve.php | |
echo "" | |
echo -n `date +%Y-%m-%d\ %H:%M` | |
echo ": Retrieval of new spots ended" | |
echo "======================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment