Counter@Home, a distributed project of my own

titanmiller

Platinum Member
Jan 5, 2003
2,123
2
81
I have set up a webpage that loads a webpage hit counter and refreshes as soon as it is loaded and adds to the count each time. All you have to do is download a html file and run it. Lets see how high we can get it.

The File - Right click and save to a known location (so the file isnt loaded from the server causing slower results)

note: opening in more than window may significantly improve results

I guess it's kind of a silly project with no real goal but I plan to do weekly stats every Sunday morning.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,700
4,661
75
Try running several instances of this little shell script (or do more wgets per loop)

#!/bin/sh
while
true
do
wget -c http://counter.digits.com/wc/-d/4/Counter@Home &
sleep 1
done

Just don't remove the sleep! I tried it without it, and I basically DOSed my own dumb self!:eek:

The -c minimizes bandwidth even more than just downloading the file.
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
Originally posted by: titanmiller
how do I get that to work? do I need to put it inside <script></script> tags?
That's a shell script. It will only work on UNIX and UNIX-based systems (such as Linux, *BSD, etc.). It can not, AFAIK, be put in a web page.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,700
4,661
75
I just discovered that your page doesn't work on Netscape on broadband! The text page keeps reloading, but it doesn't have time to download the image!
 

Intelligence3

Senior member
Feb 26, 2003
496
0
0
Originally posted by: PeterN
hehe,

You must have a sticky enter-key. :D:)

I dozed off with my nose on the keyboard.
rolleye.gif
 

titanmiller

Platinum Member
Jan 5, 2003
2,123
2
81
Originally posted by: Ken_g6
I just discovered that your page doesn't work on Netscape on broadband! The text page keeps reloading, but it doesn't have time to download the image!

I'm going to try out that batch file now and see how that works.
 

titanmiller

Platinum Member
Jan 5, 2003
2,123
2
81
Originally posted by: Ken_g6
Sorry. I keep forgetting not everybody runs CygWin.

Try this batch file in Windows.

wget http://counter.digits.com/wc/-d/4/Counter@Home
:while
wget -bc http://counter.digits.com/wc/-d/4/Counter@Home
sleep 1
del wget-log.%1
goto while

You'll have to pass it a number, like 1 for the first process, 2 for the second, etc.

I tryed the batch file and unfortunantly it doesnt work it says "bad command or file name" and loops that
any other ideas on how to improve preformance?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,700
4,661
75
Well, of course you need wget. I thought that was obvious.:eek:

Nobody uses Linux utilities in Windows.:brokenheart:

Anyway, I re-did the batch file:

:while
wget -c http://208.209.2.112/wc/-d/4/Counter@Home
goto while

I think it would help if you put the IP, instead of the DNS name, in the web page too.