I found out that i could ping a system on python by typing
os.system('ping ip')
but when i execute it, it shows cmd.
My question is, how do i ping someone on python without showing the cmd?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need only a ping, then it would be better to use something like ping.py.
In other cases use
subprocessas suggested by @Sentinel