Hi guys,
Im building the script to do ping, telnet and trace route.
I know about those commands work and just trying to get the idea from you guys about the nicest way to do it.
1. about ping :
you know the output is number of iterations, is there anyway to make the output like "ping is alive", how do you guys usually do it by how many iteration to make sure that its alive.
2. telnet, the output is like this :
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.1
How to make the output is like "telnet to port ## is alive"
3. I think I dont need to ask about trace route.
Any input will be much appreciated.
Thank you,
Im building the script to do ping, telnet and trace route.
I know about those commands work and just trying to get the idea from you guys about the nicest way to do it.
1. about ping :
you know the output is number of iterations, is there anyway to make the output like "ping is alive", how do you guys usually do it by how many iteration to make sure that its alive.
2. telnet, the output is like this :
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.1
How to make the output is like "telnet to port ## is alive"
3. I think I dont need to ask about trace route.
Any input will be much appreciated.
Thank you,