[Tkinter-discuss] ssh login through Tkinter - problem on windows

Michael Lange klappnase at web.de
Tue Dec 14 17:33:15 CET 2010


Thus spoketh python at bdurham.com 
unto us on Tue, 14 Dec 2010 09:53:14 -0500:

> Michael,
> > pipe = subprocess.Popen(args, stdout=subprocess.PIPE,
> > stderr=subprocess.STDOUT, shell=False)
> What happens when you try shell=True?
> Also, is there a way to run ssh unbuffered?
> What happens when you exit root.mainloop()? Can you try a root.after(
> 1000, root.quit ) to see if your example works after Tk exits?

Sure, without Tk it works, the odd thing is that it does not work when Tk
is active, in fact I don't even need to call mainloop() to make it fail,
a simple root=Tk() is sufficient. I also tried a number of different ways
of invoking subprocess.Popen() but nothing helps. I guess that it's
probably a problem with the setup of the ssh client rather than actually
a Tk bug, but when I asked google, I couldn't find any hints.



.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Another Armenia, Belgium ... the weak innocents who always seem to be
located on a natural invasion route.
		-- Kirk, "Errand of Mercy", stardate 3198.4

More information about the Tkinter-discuss mailing list