Which one of these should I use ??
Posted: Mon Jan 30, 2006 10:07 pm
Hi again, lol, can't stop coding...
Which one of the following, or something better, should I use? I want to run the script every 5 minutes, and I already tried that with the first one "/usr/local/bin/php /home/mydomain/public_html/~subdomains/post.php " and I believe it caused my server to go to load of 300+ and freeze. Did I do it wrong or how should i do it so it doesn't f up my server like that?
Which one of the following, or something better, should I use? I want to run the script every 5 minutes, and I already tried that with the first one "/usr/local/bin/php /home/mydomain/public_html/~subdomains/post.php " and I believe it caused my server to go to load of 300+ and freeze. Did I do it wrong or how should i do it so it doesn't f up my server like that?
Code: Select all
/usr/local/bin/php /home/mydomain/public_html/~subdomains/post.php // USING
GET http://www.mydomain.com/~subdomains/zzztest/123.php > /dev/null
lynx -dump http://www.mydomain.com/~subdomains/zzztest/123.php > /dev/null
curl http://www.mydomain.com/~subdomains/zzztest/123.php > /dev/null // INTERESTING OUTPUT
php /home/mydomain/public_html/~subdomains/zzztest/123.php
php -q /home/mydomain/public_html/~subdomains/zzztest/123.php
cd /home/mydomain/public_html/~subdomains/zzztest/;/usr/local/bin/php /home/mydomain/public_html/~subdomains/zzztest/123.php
php -f /home/mydomain/public_html/~subdomains/zzztest/123.php
POST http://www.mydomain.com/~subdomains/zzztest/123.php > /dev/null // CRAP
/usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
nice -n 19 ./script.php > /dev/null 2>&1 &