Not a specific FreeBSD question, but let's see what the people around here know about Python.
I'd like to do some threaded ssh connections with threading.Thread() and system.
To do that I wrote a function1 which connects to one host via ssh and a function2 which loops through a list of hosts and starts a thread with function1 and one host at a time as the function1's argument.
Here is where the fun comes in:
Not the hostname is given as an argument but every single character of it. So I am getting the error message that there are 8 arguments passed on to function1 instead of 1.
You can find the code snippet and the error message here:
http://bsdpaste.bsdgroup.de/1016
Any ideas anyone?
I'd like to do some threaded ssh connections with threading.Thread() and system.
To do that I wrote a function1 which connects to one host via ssh and a function2 which loops through a list of hosts and starts a thread with function1 and one host at a time as the function1's argument.
Here is where the fun comes in:
Not the hostname is given as an argument but every single character of it. So I am getting the error message that there are 8 arguments passed on to function1 instead of 1.
You can find the code snippet and the error message here:
http://bsdpaste.bsdgroup.de/1016
Any ideas anyone?