Can I interface tcl script with a database Mysql
Answers
-
Hello,
Can you please tell me what is your usecase and elaborate more about it.
Thank you
0 -
Hi,
We would purely like to keep a track of when a user uses a certain tcl script.
So the thought is to keep track of script stats in a small db.
Many thanks
0 -
TCL has binding interface for MySQL, for sure!
But with Hyperworks's Tcl, I'm not sure. Any way, if it does not work, you need install some add-on module for MySQL.
0 -
Altair Forum User said:
Hi,
We would purely like to keep a track of when a user uses a certain tcl script.
So the thought is to keep track of script stats in a small db.
Many thanks
try using trace command, example
trace add execution source enter p_RecordScriptRunning proc ::p_RecordScriptRunning args { set fpt [open Database.db a] puts $fpt $args close $fpt }
0 -
If you want to keep some simple things, just use plain text log file. You not need MySQL for that.
0