Ask coding questions

← Back to all posts
How send ping (python)

I want to send ping. What am I doing wrong?

import subprocess'ping -n 3', shell = True)

Error :
/bin/sh: 1: ping: not found


do you think this is a bug? It can be blocked, so as not to create a kind of botnet. I would like to hear those who know for sure.

ash15khng (393)

For some reason's OS doesn't support ping?? I think that's the issue?