Подставил директории в соответствии с моей структурой.
Работать не хочет вообще.
Как это выглядит:
Запускаем в первый раз
Код: Выделить всё
[root@111]#./update
--2008-10-06 11:37:35-- http://u35.eset.com/eset_upd/update.ver
Распознаётся u35.eset.com... 89.202.149.45
Устанавливается соединение с u35.eset.com|89.202.149.45|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: 2575 (2,5K) [application/octet-stream]
Сохраняется в каталог: `update.ver'.
100%[====================================================================================================================>] 2 575 --.-K/s в 0s
2008-10-06 11:37:35 (246 MB/s) - `update.ver' сохранён [2575/2575]
UNRAR 3.80 beta 4 freeware Copyright (c) 1993-2008 Alexander Roshal
Extracting from update.ver
Extracting /usr/local/www/data/nod32_upd_tools/temp/update.ver OK
All OK
Код: Выделить всё
[06.10.2008] - [11:37:35] [Script Start]
[06.10.2008] - [11:37:35] Downloading [update.ver] from [http://u34.eset.com/eset_upd/update.ver]
[06.10.2008] - [11:37:35] Extract [update.ver] to array[UPDATE]
[06.10.2008] - [11:37:35] Extract [update.ver.old] to array[UPDATE_OLD]
[06.10.2008] - [11:37:35] Version nod32 signature bases [3495]
[06.10.2008] - [11:37:35] [Script Stop]
Запускаем второй раз
Код: Выделить всё
[root@foxhound nod32_upd_tools]#./update
--2008-10-06 11:50:53-- http://u33.eset.com/eset_upd/update.ver
Распознаётся u33.eset.com... 89.202.149.43
Устанавливается соединение с u33.eset.com|89.202.149.43|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: 2575 (2,5K) [application/octet-stream]
Сохраняется в каталог: `update.ver.2'.
100%[====================================================================================================================>] 2 575 --.-K/s в 0s
2008-10-06 11:50:53 (246 MB/s) - `update.ver.2' сохранён [2575/2575]
UNRAR 3.80 beta 4 freeware Copyright (c) 1993-2008 Alexander Roshal
update.ver is not RAR archive
No files to extract
PHP Warning: file_get_contents(/usr/local/www/data/nod32_upd_tools/temp/update.ver): failed to open stream: No such file or directory in /usr/local/www/data-dist/nod32_upd_tools/inc/class.php on line 59
cp: /usr/local/www/data/nod32_upd_tools/temp/update.ver: No such file or directory
cp: /usr/local/www/data/nod32_upd_tools/temp/update.ver: No such file or directory
chmod: /usr/local/www/data/nod32_upd_tools/update.ver: No such file or directory
Код: Выделить всё
[06.10.2008] - [11:50:53] [Script Start]
[06.10.2008] - [11:50:53] Downloading [update.ver] from [http://u34.eset.com/eset_upd/update.ver]
[06.10.2008] - [11:50:54] Extract [update.ver] to array[UPDATE]
[06.10.2008] - [11:50:54] Extract [update.ver.old] to array[UPDATE_OLD]
[06.10.2008] - [11:50:54] Version nod32 signature bases []
[06.10.2008] - [11:50:57] [Script Stop]
Прошу прощения за длиный листинг.