Hi, I am writing a small Tkinter app that collects information about incoming and outgoing phone calls from my router and displays them in a Tkinter gui. The point is that I want to do a passwordless login via ssh to be able to see the list of phone calls without having to log into the router.
This works fine on linux, on windows the ssh login works, too, but for some reason it fails as soon as I open the Tkinter gui. A minimal example that exhibits the problem: ######################################### import os, shlex, subprocess, Tkinter root = Tkinter.Tk() cmd = '"C:\Programme\ICW\Bin\ssh.exe" -o ConnectTimeout=10 -l root -i "C:\Dokumente und Einstellungen\klappnase\Eigene Dateien\ssh\id_dsa_BS" 192.168.2.1 /bin/bcm_helper -c 1' #cmd = '"ssh" -o ConnectTimeout=10 -l root -i "/home/klappnase/.ssh/id_dsa_BS" 192.168.2.1 /bin/bcm_helper -c 1' args = shlex.split(cmd) pipe = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False) status = pipe.wait() output = pipe.stdout.read() print output# -> the phone calls list as html snippet root.mainloop() ######################################### As soon as I comment out the Tk window, the output is printed to stdout as expected, but with Tk the login fails. I don't know if this has actually something to do with Tk, though. Any ideas? Thanks in advance Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Violence in reality is quite different from theory. -- Spock, "The Cloud Minders", stardate 5818.4 _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss