Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. LilTCLer

    How to parse a list and return the index of the match?

    Nevermind, figured it out. "lsearch" was the key...
  2. LilTCLer

    How to parse a list and return the index of the match?

    Hello, Can someone help me... Need to parse a list to find a "string match", and when matched, return the list index of where it was matched. Should be easy, and I just need a quick fix. Thanks
  3. LilTCLer

    Can Partner System use IP/Internet for Intercom between buildings

    I'll have to look into the FXO/FXS cards as I'm not familiar. So the intercom output would plug into the FXO/FXS card on each side?
  4. LilTCLer

    Can Partner System use IP/Internet for Intercom between buildings

    Hello, Let me explain my situation... We have two locations, one in South side of Chicago and one in North side. We are running an Avaya Partner Phone system (must be 20 years old). We have a dedicated POTS line connecting both locations that is costing us about $1000/month. The dedicated...
  5. LilTCLer

    Simple way to sort a list?

    Worked perfectly. Thanks again
  6. LilTCLer

    Simple way to sort a list?

    Thank you, Ill give that a shot after I figure out what its exactly doing :)
  7. LilTCLer

    Simple way to sort a list?

    Hi, I've read in the contents of a directory into a list as follows: set tempdirContents [ lsort [ glob -nocomplain -types { d } -- * ] ] What I want to do is sort the list based on the last modify time (so the last modify time is the last entry in the list). Any ideas on a quick way to do...
  8. LilTCLer

    Logging data from spawned processes

    I would like to know how to log all output from separate spawned processes to separate files. For example, I am developing a program in which I need to log the execution of "main" and within main, I need to spawn two separate processes that connect to a serial console port for debug info. I...
  9. LilTCLer

    Help diagnose errors: sync byte read: bad file number...

    Here is the script that I am using in case this helps. I'm stumped. proc getTime { } { set TM [clock format [clock second] -format %H%M] set hour [clock format [clock second] -format %H] set minute [clock format [clock second] -format %M] set second [clock format [clock second] -format...
  10. LilTCLer

    Help diagnose errors: sync byte read: bad file number...

    Can anyone help me determine the cause of the following errors? I have a script that I use to telnet into several DUTs, execute a "show" command to grab some data, write the data to a single file, the close the spawned telnet process. The script will loop indefinitely; however, the foolowing...
  11. LilTCLer

    Need to make sense of "array get arr" output response

    So is there anyway to return them where each odd numbered element is the index, and the even is the value?
  12. LilTCLer

    Need to make sense of "array get arr" output response

    I'm trying to make sense out of the "array get" output: This is my array: portHandleArray(0): 1 portHandleArray(1): 2 portHandleArray(2): 3 portHandleArray(3): 4 portHandleArray(4): 11 portHandleArray(5): 12 portHandleArray(6): 13 portHandleArray(7): 14 tclsh>array get portHandleArray 4 11 0 1...
  13. LilTCLer

    Can't understand why expect gets "ahead" of itself - send command too

    OK, I'm stumped. I have a script that reads a file (of CLI commands)line-by-line and takes each line and appends it to an array/list. Now the list is a bunch of CLI commands. I then loop through each element in the list and send the CLI command to a spawned telnet session to my DUT. Once I...
  14. LilTCLer

    Can't understand why expect gets "ahead" of itself - send command too

    OK, I'm stumped. I have a script that reads a file (of CLI commands)line-by-line and takes each line and appends it to an array/list. Now the list is a bunch of CLI commands. I then loop through each element in the list and send the CLI command to a spawned telnet session to my DUT. Once I...
  15. LilTCLer

    How to read and manipulate directories and files?

    ok, thanks again for the help.
  16. LilTCLer

    How to read and manipulate directories and files?

    I may need to be able to search for a specific date and time later on in the script.
  17. LilTCLer

    How to read and manipulate directories and files?

    mtime (modify time), is returned in decimal for example: FP6_0_BZ020_20090915 - 1253047000 FP6_0_BZ021_20090916 - 1253107209 FP6_0_BZ022_20090917 - 1253182442 FP6_0_BZ023_20090918 - 1253272139 FP6_0_BZ024_20090919 - 1253368601 FP6_0_BZ025_20090920 - 1253438610 FP6_0_BZ026_20090921 - 1253542557...
  18. LilTCLer

    How to read and manipulate directories and files?

    Thanks I'll give that a shot
  19. LilTCLer

    How to read and manipulate directories and files?

    I can't figure out how to read the contents of a directory that includes other directories and files. For example, here is what I want to do. 1. cd to a particular directory. 2. read contents of the directories within, and manipulate the dir names so I can "grab" the 3 directories with the...

Part and Inventory Search

Back
Top