Rozdiely pre scripts/php/sk-nic/download.sh medzi verziami 1.5 a 1.6
| verzia 1.5, 2007/03/14 00:31:51 |
verzia 1.6, 2007/10/21 08:33:33 |
|
|
| # 2006-08-13 - created |
# 2006-08-13 - created |
| # |
# |
| |
|
| # $Platon: scripts/php/sk-nic/download.sh,v 1.4 2007-03-14 00:31:13 nepto Exp $ |
# $Platon: scripts/php/sk-nic/download.sh,v 1.5 2007-03-14 00:31:51 nepto Exp $ |
| |
|
| # |
# |
| # Put this into your crontab, it will run this script every morning at 6:15 am: |
# Put this into your crontab, it will run this script every morning at 6:15 am: |
| Riadok 34 WORK_FILE="domeny.gz"; |
|
| Riadok 34 WORK_FILE="domeny.gz"; |
|
| WGET="`which wget`"; |
WGET="`which wget`"; |
| PHP="`which php`"; |
PHP="`which php`"; |
| |
|
| cd "`dirname $0`"; |
work_dir="`dirname $0`"; |
| |
if [ "X$work_dir" = "X" ]; then |
| |
echo "$PREFIX_ERR: empty work directory variable"; |
| |
exit 8; |
| |
fi; |
| |
|
| |
cd "$work_dir"; |
| |
if [ "$?" -ne 0 ]; then |
| |
echo "$PREFIX_ERR: unable to change directory"; |
| |
exit 8; |
| |
fi; |
| |
|
| if [ -z "$WGET" ]; then |
if [ -z "$WGET" ]; then |
| echo "$PREFIX_ERR: wget binary not found"; |
echo "$PREFIX_ERR: wget binary not found"; |
Platon Group <platon@platon.sk> http://platon.sk/
|
|