On Jun 24, 3:51 am, John Salerno <[EMAIL PROTECTED]> wrote:
> Jeffrey Froman wrote:
> > Also note that "all .py files on my web server" is not necessarily
> > restricted to CGI scripts -- and therein lies the real gist of my
> > cautionary note.
>
> Yeah, I realized that afterwards. Good point. I was assuming all my
> executable files would be CGI, but that's not a good assumption to make! :)

You can execute ssh using os.system(). Look at
http://love-python.blogspot.com/2008/02/execute-linux-commands-in-python.html
If you want non-interactive ssh (so that your script doesn't need to
enter password), look at: 
http://speed-dev.blogspot.com/2008/06/non-interactive-ssh-in-linux.html

regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to