If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Если нужно отличать таймаут от отсутствия страницы, то можно добавить в curl вывод http status code, например, так:
-w "\nstatuscode %{http_code}"
и обрабатывать эту дополнительную строку в скрипте, выводя -1 при status code 0 (timeout) , -2 при <>200, 0 и выше при наличии строки not processed count.
Comment