Suggest design to accomodate non-unix platforms ?

tinnews at isbd.co.uk tinnews at isbd.co.uk
Wed Apr 18 10:28:29 EDT 2012


Richard Shea <shearichard at 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)
> 
> ... on a Windows box it will fail because 'ssh' isn't part of Windows.
> 
ssh isn't guaranteed to be part of Unix/Linux systems surely.

-- 
Chris Green



More information about the Python-list mailing list