Ask coding questions

← Back to all posts
1
How send ping (python)
[deleted]

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

import subprocess
x=subprocess.run('ping -n 3 8.8.8.8', shell = True)

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

Commentshotnewtop
1
[deleted]

@Vandesm14
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.

1
ash15khng (208)

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