-
can you fix ?
Dear Sirs
I am not a programmer.can you change for following command
source codes are following link
http://www.vanheusden.com/Linux/tcping-0.1.tgz
[root@JCLINUX ~]#tcping -h 203.81.71.69 -p 53
PING 203.81.71.69:53
connected to 203.81.71.69:53, seq=0 time=186.23 ms
connected to 203.81.71.69:53, seq=1 time=427.29 ms
connected to 203.81.71.69:53, seq=2 time=424.16 ms
connected to 203.81.71.69:53, seq=3 time=328.63 ms
connected to 203.81.71.69:53, seq=4 time=279.01 ms
connected to 203.81.71.69:53, seq=5 time=379.58 ms
===================================
My changing target is I want to type tcping 203.81.71.69 ( without -h and -p 53)
can i get following result when I type tcping 203.81.71.69
connected to 203.81.71.69:53, seq=0 time=186.23 ms
connected to 203.81.71.69:53, seq=1 time=427.29 ms
connected to 203.81.71.69:53, seq=2 time=424.16 ms
connected to 203.81.71.69:53, seq=3 time=328.63 ms
Thanks
Please
-
Moved to correct forum.
I'm assuming the original author isn't interested in your request.
This isn't a forum which offers free software services on demand.
Maybe someone here is looking for a small project, and if they wanted to, they could help you.
But if you need this done in any kind of a hurry, then
http://www.rentacoder.com/RentACoder...t/default.aspx
-
here you go.
1. Put the following code in a text file called "mytcping".
2. Give that file execute permissions by typing "chmod u+x mytcping"
3. move the file using "mv mytcping /usr/local/bin/."
4. Run using "mytcping 111.222.111.222"
Code:
#!/bin/bash
tcping -h $1 -p 53