i am trying to run some command line in python script, like:
ping 8.8.8.8
and when i write this code:
import os
os.system('ping 8.8.8.8')
it printing me the details of the command. but i want it for be background command, what mean i dont want to user will see all the details. i want to save it to varilble, and after that edit and print as my wish. how can i do that? i try to store what the function return, as:
answer = os.system('ping 8.8.8.8')
but the function return 0. help someone?