2.11.6. Running a script via wget

If you need to add a task to run a script via wget, you should do it like this:

/usr/bin/wget -t 1 -O - http://site.ua/script.php

If in the used URL parameters are passed, it may happen that wget does not process them and you get a different result than you expected. In this case, the transmitted URL need to be concluded in single quotes:

/usr/bin/wget -t 1 -O - 'http://site.ua/script.php?p1=a&p2=b'
Content