[BangPypers] Background ping - check for server availability

Saager Mhatre saager.mhatre at gmail.com
Fri Dec 30 10:13:51 CET 2011


On Fri, Dec 30, 2011 at 1:02 AM, Nikunj Badjatya
<nikunjbadjatya at gmail.com>wrote:

> Hi,
>
> I think the commands.getstatusoutput() is only for unix systems.
> When I run on windows I get this error:
>
> {{{
> >>> ret = commands.getstatusoutput('ping 192.168.1.1')
> >>> ret
> (1, "'{' is not recognized as an internal or external command,\noperable
> program or batch file.")
> }}}


on windows, try `commads.getstatusoutput('cmd ping 192.168.1.1')`

- d


More information about the BangPypers mailing list