TPIPE?

Discussion in 'Support' started by vefatica, May 16, 2012.

  1. vefatica

    Message Count:
    3,904
    IPTOCOUNTRY.HEX is a 116402-line file that looks like this.
    Code:
    v:\> head v:\IpToCountry.hex
    00000000,00FFFFFF,ZZ
    01000000,010000FF,AU
    01000100,010001FF,CN
    01000200,010003FF,CN
    01000400,010007FF,AU
    01000800,01000FFF,CN
    01001000,01001FFF,JP
    01002000,01003FFF,CN
    01004000,01007FFF,JP
    01008000,0100FFFF,TH
    I tried reversing it with
    Code:
    tpipe /input=iptocountry.hex /sort=0,1,0,1,8
    15 minutes later, it was still running, using all of one processor ("sort /r IpToCountry.hex" takes a couple seconds).

    When I tried to interrupt it with Ctrl-C, I got "tpipe.EXE has stopped working ...". I told Windows to "Close the program" ...

    ---------------------------
    Error
    ---------------------------
    Runtime error 217 at 00010524
    ---------------------------
    OK
    ---------------------------
  2. vefatica

    Message Count:
    3,904
    Will TPIPE.EXE be linked to an internal TPIPE (like SHRALIAS.EXE) so it doesn't have to be in the path?
  3. rconn Administrator

    Message Count:
    5,790
    No.
  4. rconn Administrator

    Message Count:
    5,790
    Email me your file.
  5. rconn Administrator

    Message Count:
    5,790
    There is something *very* strange about that file. TPIPE is actually sorting it, albeit very slowly (it took about 20 minutes on my system). I created a similar file that was about 3.5 Mb with 300,000 lines that sorts in 2.1 seconds, so I know it's not an issue with the file size or number of lines.

    I'll send the file to the textpipeengine.dll developers to test.
  6. vefatica

    Message Count:
    3,904
    Did you look at the file's contents? It's hardly "strange". I made that file with TCC. The original (iptocountry.csv, link below) has the same number of lines, but with the IPs in non-dotted decimal numeric form. TPIPE /SORT chokes on it similarly.

    FYI:

    Code:
    copy "http://software77.net/geo-ip/?DL=2 -O /path/IpToCountry.csv.zip"
  7. vefatica

    Message Count:
    3,904
    The crash when interrupting with Ctrl-C happens with all files (that give you a change to do so). Did you fix that?
  8. rconn Administrator

    Message Count:
    5,790
    Not reproducible here.
  9. rconn Administrator

    Message Count:
    5,790
    I did look (extensively) at the file's contents. The "strange" thing is that it chokes the sort routine, while a similar (larger) file does not.
  10. vefatica

    Message Count:
    3,904
    Happens every time here, even on my TCMD.INI (but I must be very quick to press Ctrl-C).
  11. rconn Administrator

    Message Count:
    5,790
    What does TCMD.INI have to do with ^C during TPIPE?
  12. vefatica

    Message Count:
    3,904
    I was only pointing out that it happens with small files.
  13. vefatica

    Message Count:
    3,904
    Does TPIPE have a global option (/tee?) to write to stdout as well as an output file?
  14. vefatica

    Message Count:
    3,904
    These:
    Code:
    v:\> tpipe /?
    TPIPE: The system cannot find the file specified.
    "CON:"
     
    v:\> tpipe
    TPIPE: The system cannot find the file specified.
    "CON:"
    1. cause \aemail\datamystic.log to be created and written to
    2. should produce a more useful result
  15. Rod Savard

    Message Count:
    228
    Noticed the aemail folder is still being created even with the latest public beta (15)
  16. rconn Administrator

    Message Count:
    5,790
    No.
  17. rconn Administrator

    Message Count:
    5,790
    WAD. I put it back in for the duration of the beta.

    Code:
    help tpipe
    produces a useful result. "tpipe /?" producing several pages of output (that you couldn't use anyway without referring to the help) would not be a useful result.
  18. vefatica

    Message Count:
    3,904
    I agree; you're not going to get any useful TPIPE help in the console. But "TPIPE" and "TPIPE /?" producing an error message is equally useless. Users are going to do that. Let them give the brief message "try HELP TPIPE" or even take you directly to the help.
  19. rconn Administrator

    Message Count:
    5,790
    I can do that, provided you don't mind TPIPE loading significantly slower (because it has to load Internet Explorer as well).
  20. vefatica

    Message Count:
    3,904
    Well you know how I feel about speed. :)
    Must it load IE just to output the message "Try HELP TPIPE" and quit?

Share This Page

Users found this page by searching for:

  1. tpipe

    ,
  2. jpsoft.com tpipe

    ,
  3. tcc tpipe help