huge scanning script
Posted: Tue Jul 25, 2006 9:45 am
hi,
I have a script that scans thousands of ips and puts the results in a database. I have tested it to scan up to 250 ips and it works well, but very slow. According to my calculations my script needs 2 - 3 days to finish scanning all ips I want it to scan. I can't keep my brouser open the whole time, so I decided to use "cron jobs". I'm using the comand "php -q /path_to_script/script.php", but 12 hours after the time it was assigned the database is still empty. Is it posiible, the reason for this to be in the cron job program on the server or in the php program?
I think this is an interesting question.
I have a script that scans thousands of ips and puts the results in a database. I have tested it to scan up to 250 ips and it works well, but very slow. According to my calculations my script needs 2 - 3 days to finish scanning all ips I want it to scan. I can't keep my brouser open the whole time, so I decided to use "cron jobs". I'm using the comand "php -q /path_to_script/script.php", but 12 hours after the time it was assigned the database is still empty. Is it posiible, the reason for this to be in the cron job program on the server or in the php program?
I think this is an interesting question.