Find the answer to your Linux question:
Results 1 to 3 of 3
Hi People, I am having the hardest time to find the answer to how I can parse a route table from the linux 'route' command into my program. The solution ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    5

    Talking Reading Linux Routing Table into a C++ program

    Hi People,

    I am having the hardest time to find the answer to how I can parse a route table from the linux 'route' command into my program.

    The solution is probably trivial, but I just can't pin my finger on it.

    Can someone please shed some light on this?

    Thanks in advance,
    Jason, the sw-braindead guy.

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Do the following at the command line:
    Code:
    man popen
    man pclose
    man fgets
    man sscanf
    Hope this helps.

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    5

    Thumbs up

    Thank you. Works like charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...