Thread: can you fix ?

  1. #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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

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