LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Loop Bash command to hit... (https://www.linuxquestions.org/questions/linux-general-1/loop-bash-command-to-hit-410192/)

rumperpumper 01-31-2006 07:45 PM

Loop Bash command to hit...
 
a specific URL?

There has been this web site i have found that is basicaly raising money for some one in need and by them doing this they have sponsors that will provide them with money depending on how many hits they get.

Is there any way to write a bash command that will continuously hit the url until the comand is stopped or for a specific amout of loops.

Im the newest of the new with unix, so i appreciate any help i can get.

Cheers,

Lucas:newbie:

gilead 01-31-2006 07:52 PM

Most sites also implement IP checking so that when someone does what you're proposing they can spot the fraud attempt. However, look at `man wget` and `man curl`. If you tried `man bash` and searched in it for 'for name' you should get some info on looping.

Doing this is not a good idea :)

rumperpumper 01-31-2006 07:54 PM

Never mind i figured it out :)

rumperpumper 01-31-2006 08:12 PM

Quote:

Originally Posted by gilead
Most sites also implement IP checking so that when someone does what you're proposing they can spot the fraud attempt. However, look at `man wget` and `man curl`. If you tried `man bash` and searched in it for 'for name' you should get some info on looping.

Doing this is not a good idea :)

Yeah your right i think there is some kind of IP checking as the command has run in succession 25 times but has only had about 3 hits since i started the bash.

May i enquire as to why u think this is nto a good idea?


Thanks again! :)

gilead 01-31-2006 08:39 PM

A quick disclaimer - I hate advertising and I have no sympathy for those in advertising.

That said - it's a legitimate business model to pay based on visits to a site.

I think scripting the hits on the link is a bad idea because no matter how good the cause, tricking someone into believing their advertising is successful and gaining money because of that seems like fraud to me.

I won't bore you with any more of my opinion on the subject if you won't ask me to contribute to the cause :)


All times are GMT -5. The time now is 05:28 AM.