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

You are viewing a single comment. View All
ash15khng (471)

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