On Fri, Aug 9, 2013 at 1:46 AM, D. Xenakis <gouzouna...@hotmail.com> wrote: > I've played with putty to achieve this but to be honest i'd like something > more efficient. Opening putty everytime and making all the connection > settings etc, and then running the programm, is kinda messy. Id like this to > be done in an automatic way from the program so that things roll easy. > I thought maybe i should find a way how to call and run a batch file from > inside my python program or a powershell command, but i do not know even if > that could work for the ssh tunneling.
You should at very least be able to save PuTTY's settings under some name. Once you've done that, check PuTTY's docs for a way to invoke it with particular saved settings. I'm pretty sure there's a way to do that. The program can then invoke that as a background process, then go on to do whatever you need. Be aware, though, that you'll need to set up passwordless access (with a keypair) if you're to fully automate the process. But you may have already done that. ChrisA -- http://mail.python.org/mailman/listinfo/python-list