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 IamaSherpa 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. Hopeful22

    system time in milliseconds

    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
  2. Hopeful22

    system time in milliseconds

    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...
  3. Hopeful22

    system time in milliseconds

    That definitely did the trick! It compiled fine. Thanks a lot marsd! :)
  4. Hopeful22

    system time in milliseconds

    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...
  5. Hopeful22

    system time in milliseconds

    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!
  6. Hopeful22

    system time in milliseconds

    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 =...
  7. Hopeful22

    Running tcl script from command line

    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 &quot;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...
  8. Hopeful22

    Newbie: TCL error

    Bong you're correct, as I change &quot;/usr/loca/tcltk/bin&quot; to different directory, the error message changes. Although I've change from &quot;tcl&quot; to &quot;tclsh8.0&quot; to &quot;tcl8.0.3&quot; I continue to get &quot;crocohtmInit3.0.tcl: proc: command not found&quot; &...
  9. Hopeful22

    Newbie: TCL error

    Here's a snippet of the beginning of the file.tcl. #!/usr/local/tcltk/bin/tcl -f proc printLog { logStr } { set LOG_DATE &quot;[ exec date +%H:%M:%S] [exec date +%d-%m-%Y ]&quot; puts stdout &quot;crocohtm: $LOG_DATE $logStr&quot; }
  10. Hopeful22

    Newbie: TCL error

    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...
  11. Hopeful22

    Newbie: TCL error

    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...

Part and Inventory Search

Back
Top