A program to recognize and reward our most engaged community members
Is there a method in Hypermesh, so that tcl scripts can interface with a database (mysql)?
Many thanks in advance,
Hello,
Can you please tell me what is your usecase and elaborate more about it.
Thank you
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
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.
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 }
If you want to keep some simple things, just use plain text log file. You not need MySQL for that.