C Board  

Go Back   C Board > Community Boards > Projects and Job Recruitment

Reply
 
LinkBack Thread Tools Display Modes
Old 10-26-2008, 11:02 PM   #1
Registered User
 
Join Date: Oct 2008
Posts: 1
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
please is offline   Reply With Quote
Old 10-26-2008, 11:33 PM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
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
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 10-27-2008, 08:45 AM   #3
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,588
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
Perspective is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting an error with OpenGL: collect2: ld returned 1 exit status Lorgon Jortle C++ Programming 6 05-08-2009 08:18 PM
compiling my code, i can't fix error howru C Programming 2 04-22-2008 03:38 AM
Drag and Drop code (please help me fix) John_L C# Programming 1 11-17-2007 06:11 PM
C++ code need help to fix McReal C++ Programming 9 05-12-2007 02:48 PM
Help me fix my mess!!!! Starr C++ Programming 35 02-01-2006 03:40 PM


All times are GMT -6. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22