print("||") + os.system('PING -n 1 {} | FIND "TTL="'.format(host))
the output is:
||
reply from {}: ms etc
is it possible to make it like this?
|| reply from {}: ms etc
print("||") + os.system('PING -n 1 {} | FIND "TTL="'.format(host))
the output is:
||
reply from {}: ms etc
is it possible to make it like this?
|| reply from {}: ms etc
Change the end parameter of your print from a new-line (the default) to an empty space
Flush the print so the os.system output will come after the print
Don't add print to os.system since print returns None
import os
print("||", end='', flush=True)
os.system('PING -n 1 {} | FIND "TTL="'.format(host))