mktclindex….

  • Creator
    Topic
  • #50113
    Tom Rioux
    Participant

    When you run the mktclindex command, is there some sort of log entry that gets created somewhere?

    Thanks…

    Tom Rioux

    Baylor Health Care System

Viewing 3 reply threads
  • Author
    Replies
    • #64928
      Charlie Bursell
      Participant

      mktclindex is a simple Tcl script that runs the Tcl auto_mkindex command.

      This creates a file of the name tclIndex in the currect directory.  The tclIndex file is an array with index of process name and a value of the SourceFilter command with aruments of the full path to the file containing the Tcl procedure.  The SourceFilter command is a specialized version of the source command.

      Nothing magic here  😀   When a procedure is needed the Tcl path (auto_path) is searched for tclIndex files with that procedure.  When found, simply load that file via the SourceFilter command to the interpreter.

      Since mktclindex is simply a script of Tcl commands you can modify it to do whatever you want.  If you look at it you will see the mdification I made to warn you of duplicate procedures.

      I hope this helps[/quote]

    • #64929
      Tom Rioux
      Participant

      Let me explain why I asked the question:

      We came in this morning and found the tclIndex file on one of our sites was corrupted.  It only contained 3 lines.  The timestamp on the file was from around 3pm yesterday afternoon.    The latest timestamp on any of the files in the tclprocs directory was from May 15th.  We have asked the others on the Cloverleaf staff here but no one admits running the mktclindex command yesterday on that site.

      Thanks…

      Tom Rioux

    • #64930
      Charlie Bursell
      Participant

      Must be gremlins  🙄

      I know of no way the file can change without running the command or manually changing it.  Sounds like someone is not owning up to it.

    • #64931
      Kevin Kinnell
      Participant

      Heck, someone probably just fat-fingered the ‘ls’ command…

Viewing 3 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
4,968
Forums
28
Topics
9,109
Replies
33,637
Topic Tags
248