On Wed, Apr 18, 2012 at 6:35 AM, Richard Shea <shearich...@gmail.com> wrote:
> On a *nix box this is a reasonable bit of Python :
>
> cmd = "ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s' > %s" % (key,
> user, dns, "echo CONNECTION READY", tmp_file)
> result = os.system(cmd)

It's slightly less reasonable considering that the `subprocess` module
is preferred over os.system().

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to