Thanks for your input. It would work better if there's a way to measure the milliseconds by the minute or hour. Reason being it gives no indication on how many turnovers actually occurred.
thanks again
After some further testing, I am getting some negative values sometimes when I do, where stime calls the C program referred in the prior postings:
set START_TIME [stime]
<snip>
...
wait for data
...
<snip>
set END_TIME [stime]
Total time: [expr $END_TIME - $START_TIME]
Any ideas?
Thanks in...
I tried to compile it on 2 different systems, but I get the same error.
hostA]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
hostB# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs...
I was trying out your suggestion. However, I'm receiving compiling errors:
host# gcc systime.c
systime.c: In function `main':
systime.c:7: parse error before `<'
systime.c:8: parse error before `<'
Might I be missing something?
thanks in advance!
I'm try to convert the system date/clock time to milliseconds in order to measure relative completion time of an event. I am sending a tcp connect request from unix A to unix B. I would set T1 on unix A when the request was sent, and set T2 on unix B when request was received.
T2 - T1 =...
Thanks for the guys on my previous question that i have posted. I have a short question this time.
In running regular shell scripts, i can type "sh -x ./(script_name) and can see the script execute all its steps.
Is there an equivalent for my tcl script so that I can execute it and see it...
Bong you're correct, as I change "/usr/loca/tcltk/bin" to different directory, the error message changes. Although I've change from "tcl" to "tclsh8.0" to "tcl8.0.3" I continue to get "crocohtmInit3.0.tcl: proc: command not found" &...
Here's a snippet of the beginning of the file.tcl.
#!/usr/local/tcltk/bin/tcl -f
proc printLog { logStr } {
set LOG_DATE "[ exec date +%H:%M:%S] [exec date +%d-%m-%Y ]"
puts stdout "crocohtm: $LOG_DATE $logStr"
}
I'm not too sure exactly what you would like me to post. Basically, inside my shell script it calls file.tcl:
file.tcl >> file.log
My file.tcl file is where I have all the proc and puts command and is kinda large to display in its entirety.
Here's a first few entries in the file.tcl:
set...
Hiya,
I'm just starting to learn and get familiar with TCL. I have a shell script that executes a tcl. However, I get an error in my error log.
file.tcl: proc: command not found
file.tcl: puts: command not found
Might anyone know what is causing this? I have a redhat linux machine. A friend...
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.