Page 1 of 1

Anyone decent with Perl?

PostPosted: Tue Jul 18, 2006 10:06 am
by MrConfigT
I currently have a perl script...

In this script I ping some hosts read from a host database table in mysql. I right now if I ping each host 10 times and each ping takes a second, then I can only do 6 hosts a minute. I need this script to run every minute. And I have hundreds of hosts (theoritcally). So I need to build in some 'threading' capability.

I need it to ping these hosts concurrently and I'm pretty new to perl. Will calling fork() work for this? Also, would anyone be willing to take a look at some code to see where I would need to fork (or whatever) for this to work?

PostPosted: Mon Feb 25, 2008 4:55 am
by autoload
Can anybody help this guy?

PostPosted: Mon Feb 25, 2008 5:02 am
by Skittles!
autoload wrote:Can anybody help this guy?

I'm saddened to tell you that he cannot be helped.

PostPosted: Mon Feb 25, 2008 6:02 am
by MeDeFe
Isn't that the "Tim Towdi" language? If so you should have a lot of possibilities to implement that. The downside is that you have dozens of ways of implementing it.

PostPosted: Mon Feb 25, 2008 3:31 pm
by hecter
Perl is the language of the Nazi's...

PostPosted: Mon Feb 25, 2008 4:17 pm
by heavycola
I'm good at perl necklaces, if that's any use

PostPosted: Mon Feb 25, 2008 9:52 pm
by SolidLuigi
I took 1 class in college where we learned some Perl...not to say I remembered any of it

PostPosted: Mon Feb 25, 2008 10:04 pm
by InkL0sed
I want to learn Perl. Unfortunately I don't. :(

But I am crazy good at NetLogo!

PostPosted: Tue Feb 26, 2008 8:22 am
by Geoff_with_a_G
Yes, me!...unlike most of her so-called 'boyfriends'