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
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.