Chris Hallman wrote:
> I was finally able to get my script to not show duplicate PINGs. I also
> realized that my script was not PINGing all the hosts in the input file.
Congratulations on getting it to work! See below for a few notes.
> Here is my latest version:
>
>
> import os, re, string
You're right. I'm inexperienced with classes and threading. The example
you gave (www.wellho.net) was the same example I used as the basis for
my script however I wasn't able to get it to work. I couldn't figure
out what the -q parameter is (it's not a valid parameter on the *nix I
have access to)
Chris Hallman wrote:
>
> I made a mistake in my first email. I meant that I can't get fc to
> write to the file. Here is the error:
>
> Traceback (most recent call last):
> File "thread_test_ping.py", line 37, in ?
> output.write(fc + " failures found.\n")
> TypeError: unsupported oper
On Sun, 23 Oct 2005, Chris Hallman wrote:
> I made a mistake in my first email. I meant that I can't get fc to write
> to the file. Here is the error:
>
> Traceback (most recent call last):
> File "thread_test_ping.py", line 37, in ?
> output.write(fc + " failures found.\n")
> TypeError: uns
I made a mistake in my first email. I meant that I can't get fc to write to the file. Here is the error:
Traceback (most recent call last):
File "thread_test_ping.py", line 37, in ?
output.write(fc + " failures found.\n")
TypeError: unsupported operand type(s) for +: 'int' and 'str'
I
Chris Hallman wrote:
>
> I hacked together my first script to learn threading. I'm seeing some
> weird output.
>
> This script will PING approximately 1,000 routers. I added a few print
> commands for debugging so I can see if it runs faster than a single
> threaded script. It blazes through t
I hacked together my first script to learn threading. I'm seeing some weird output.
This script will PING approximately 1,000 routers. I added a few print
commands for debugging so I can see if it runs faster than a single
threaded script. It blazes through the routers, however I'm seeing
multip