Also, what if I also want to specify an input with Timeout?
This is what I've done:
server = raw_input("Server to perform the Ping on [IP/URL]: ")
timeout = raw_input("Ping length time [Seconds]: ")
os.system("gnome-terminal -e 'ping -w %d -i 2 %s'" % str(server) % str(timeout))
So, basically, I also wanna fit the timeout string too. How do I do that? (The above code obv. doesn't work)
Also, how do I get all that code into a
for x in range(0, 3): ? So that it would open 3 Terminal windows and do that Ping.
It surprisingly didn't work for me for some reason, where as it just did before...