f



How to create log file and command journal files for a TCL session

I am using TCL as the command language for my C++ application.  How do
I add the following?

1. Command journal file that records all TCL commands that the user
issues during the session.  The purpose of this file is to allow
someone to reproduce the same command sequence at a later time.

2. Log file that contains everything that was displayed to the user by
my application, as well as by TCL.  In other words, everything that was
output to stdout and stderr.  I can imagine how to do this with a
redirect, but I wonder if there is something more straightforward.


Thank you for your help with one or both of these questions.

0
10/4/2006 9:07:30 AM
comp.lang.tcl 23429 articles. 2 followers. Post Follow

2 Replies
870 Views

Similar Articles

[PageSpeed] 6

google@voom.net wrote in
news:1159952849.982836.16970@e3g2000cwe.googlegroups.com: 

> I am using TCL as the command language for my C++ application.  How do
> I add the following?
> 
> 1. Command journal file that records all TCL commands that the user
> issues during the session.  The purpose of this file is to allow
> someone to reproduce the same command sequence at a later time.
> 
> 2. Log file that contains everything that was displayed to the user by
> my application, as well as by TCL.  In other words, everything that
> was output to stdout and stderr.  I can imagine how to do this with a
> redirect, but I wonder if there is something more straightforward.
> 
> 
> Thank you for your help with one or both of these questions.
> 
> 

1.) In a former job I had that problem myself, trying to hack geometry
manager issues with other peoples' GUIs in an interactive session, then
not being sure what I did to fix it.  I wrote and sourced in a script
(sorry, I don't have access to that code any more) that:  

a.)  defined a proc named xhistory which parsed its first argument, and
if it matched a, ad or add, logged the 2nd argument, then regardless of
arguments, invoked uplevel _history with the original argument list.  
b.)  renamed history to _history c.)  renamed xhistory to history

This worked because the Tcl interpreter in an interactive console
invokes "history add" for every typed command so it can add the command
to the history.  I had some trouble, however, trying to directly rename
history and add a new history command, because if you try to type this
sequence (or cut and paste it) the autoloader re-loads the old history
command if no history command exists when a command is entered.  Thus,
steps b and c must be on the same line (or a continuation line) if they
are typed.  Of course if you put this into a file and source it, it
shouldn't matter.  

2.)  I always solved this by shell redirection.  
-- 
 Rich Wurth / rwurth@att.net / Rumson, NJ 07760 USA
 Anyone need a good Tcl coder in Central NJ, or NYC, NY?
0
rwurth (78)
10/4/2006 3:23:42 PM
In article <Xns985273EF084B9rwurthattnet@204.127.36.1>,
R. T. Wurth <rwurth@att.net> wrote:
>google@voom.net wrote in
>news:1159952849.982836.16970@e3g2000cwe.googlegroups.com: 
>
>> I am using TCL as the command language for my C++ application.  How do
>> I add the following?
>> 
>> 1. Command journal file that records all TCL commands that the user
>> issues during the session.  The purpose of this file is to allow
>> someone to reproduce the same command sequence at a later time.
>> 
>> 2. Log file that contains everything that was displayed to the user by
>> my application, as well as by TCL.  In other words, everything that
>> was output to stdout and stderr.  I can imagine how to do this with a
>> redirect, but I wonder if there is something more straightforward.
>> 
>> 
>> Thank you for your help with one or both of these questions.
>> 
>> 
>
>1.) In a former job I had that problem myself, trying to hack geometry
>manager issues with other peoples' GUIs in an interactive session, then
>not being sure what I did to fix it.  I wrote and sourced in a script
>(sorry, I don't have access to that code any more) that:  
>
>a.)  defined a proc named xhistory which parsed its first argument, and
>if it matched a, ad or add, logged the 2nd argument, then regardless of
>arguments, invoked uplevel _history with the original argument list.  
>b.)  renamed history to _history c.)  renamed xhistory to history
>
>This worked because the Tcl interpreter in an interactive console
>invokes "history add" for every typed command so it can add the command
>to the history.  I had some trouble, however, trying to directly rename
>history and add a new history command, because if you try to type this
>sequence (or cut and paste it) the autoloader re-loads the old history
>command if no history command exists when a command is entered.  Thus,
>steps b and c must be on the same line (or a continuation line) if they
>are typed.  Of course if you put this into a file and source it, it
>shouldn't matter.  
>
>2.)  I always solved this by shell redirection.  

With a bit of persistence (that is, looking through the arguments to puts),
the same trick works:
rename puts to old_puts (or something no one will use), then create your own
puts, and have it do logging.

Things to watch out for:
    test for -nonewline
    test for use of a file to do puts, in which case you don't do logging

Then pass the output to old_puts to have it do its normal thing..

Won't work for EVERYTHING, but is enough of a solution for us..

MH
0
10/10/2006 11:03:07 PM
Reply:

Similar Artilces:

Sourcing a TCL file from within a tcl file
I am a newbie which I am sure I don't need to state :) I am trying to create a variable with a TCL file that will source another tcl file when I type the variable name something like this if I enter A through my keyboard then source a.tcl Can someone show me how to do this thanks guy On Dec 10, 1:15=A0pm, guy <gcoletta2...@gmail.com> wrote: > I am a newbie which I am sure I don't need to state :) > > I am trying to create a variable with a TCL file that will source > another tcl file when I type the variable name > > something like this > > if I enter A through my keyboard =A0then source a.tcl > > Can someone show me how to do this > > thanks > guy What you are asking is not hard. Will your program have a graphical user interface? Aric On Dec 10, 3:26=A0pm, Aric Bills <aric.bi...@gmail.com> wrote: > On Dec 10, 1:15=A0pm, guy <gcoletta2...@gmail.com> wrote: > > > I am a newbie which I am sure I don't need to state :) > > > I am trying to create a variable with a TCL file that will source > > another tcl file when I type the variable name > > > something like this > > > if I enter A through my keyboard =A0then source a.tcl > > > Can someone show me how to do this > > > thanks > > guy > > What you are asking is not hard. =A0Will your program have a graphical > user interface? > > Aric no I am just using this script...

Tcl file from .txt file
Hi, I have a excel file. I need to change the excel file in to tcl file. I did = change the excel file in to txt file. but unable to change the txt file in = to tcl file. let me know any idea to change the txt file in to tcl file or = directly from the excel file in to tcl file.=20 your help is much more appreciated. thank you. On 11/14/14, 1:30 PM, yenilsuwal@gmail.com wrote: > Hi, > > I have a excel file. I need to change the excel file in to tcl file. I did change the excel file in to txt file. but unable to change the txt file in to tcl file. let me know any idea to c...

Creating a TCL Channel from a C FILE* giving strange file handles
Hey Everybody! Having a problem with the Tcl C Library calls I cant seem to= figure out. I'm trying to create a channel from opened FILE *, and use it = in a TCL script that sources the module. So, what I am running so far is: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D int openCFileCmd(ClientData clientData,=20 Tcl_Interp *interp, int objc, Tcl_Obj *CONST o= bjv[])=20 ...

expect-tcl logging with date time stamp on each line of the log file how ???
I have a expect/tcl script which logs into a router and execute some cmds on it. I want to log the expect interaction to a log file, i use log_file -a filename.log to log all of the expect cmds executions. a. with log_file -a, i can log only spwan process, how do i log o/p form "exec" execution? eg: exec bash -c "(ls -al)" in the same log file as filename.log?? b. I want to add date time stamp before start of each log line of filename.log, is there a way to do this setting some options of log_file or any other way to do this ?? -hanu Guys any thoughts ??? no1 is able to gv me a solution ??? :( On Jul 1, 9:32=A0pm, hanu_blr <hanu_...@yahoo.com> wrote: > Guys any thoughts ??? no1 is able to gv me a solution ??? :( ok, this is wat i hv thought.... 1. i start logging using log_file -a file1.log 2. Open a new file say stamp.log 3. read line by line from file1.log and append timestamp: lines of file1.log for each line and write it to stamp.log 4. onces all lines are over, stop writing to stamp.log wat will the script looks like ??? any idea ? ...

Creating ZIP files with Tcl ?
Hi all, I'd like to create a ZIP file containing a bunch of text / binary files (log-files from our server) automatically for backup reasons. I've tried to use vfs::zip but it seems to work in read mode only. Next I tried to use Michels mkZiplib but this crashes as i try to close my ZIP file in the end (using the code from the examples on the WEBsite). I'm running WinXP with ActiveTcl 8.4.11. Does anyone have a clue how to continue? Regards - Leo We ended up spending $40 to get the latest ZIP version that has a command line option to do this - it works pretty well. Dave davidhbigelow@simplifiedlogic.com wrote: > We ended up spending $40 to get the latest ZIP version that has a > command line option to do this - it works pretty well. > > Dave > pkware or winzip? I just had to do the same thing and had trouble using winzip's command-line helper. It seems to require a console and won't start under wish because Tcl runs exes detached. I went with this: http://www.winimage.com/zLibDll/ small, fast.. what more could I want? Leopold Gerlinger wrote: > Hi all, > > I'd like to create a ZIP file containing a bunch of text / binary files > (log-files from our server) automatically for backup reasons. I've tried > to use vfs::zip but it seems to work in read mode only. Next I tried to > use Michels mkZiplib but this crashes as i try to close my ZIP file in the > end (using the code from the example...

"no such file or directory" when executing tcl file
Hi, new to TCL and hitting a road bump right out the gate. I just installed ActiveTcl 8.5 on my Windows XP SP2 machine. I made the following script and saved it as test.tcl: #!/usr/local/bin/tclsh puts stdout {Hello, Patrick!} When in the TCL command prompt, I type test.tcl and it gives me the error "couldn't execute ".\test.tcl": no such file or directory". I am in the correct directory so I'm pretty lost as to why it is saying this. Here are my exact steps: <open command prompt> H:\workspaces\tcl>tclsh85 % dir Volume in drive H is Data Volume Serial Number is 828C-6076 Directory of H:\workspaces\tcl 01/12/2009 05:23 PM <DIR> . 01/12/2009 05:23 PM <DIR> .. 01/12/2009 05:37 PM 31 test.tcl 1 File(s) 31 bytes 2 Dir(s) 41,173,749,760 bytes free % test.tcl couldn't execute ".\test.tcl": no such file or directory If someone could help fill in the blanks here, I'd appreciate it. Apparently I'm overlooking something obvious. Thanks, Patrick On Jan 13, 12:43=A0am, "Patrick H." <patri...@gmail.com> wrote: > Hi, new to TCL and hitting a road bump right out the gate. I just > installed ActiveTcl 8.5 on my Windows XP SP2 machine. I made the > following script and saved it as test.tcl: > > #!/usr/local/bin/tclsh > puts stdout {Hello, Patrick!} > > When in the TCL command prompt, I type...

Dose there any tcl script to translate an file with embedded tcl
Hi I need to generate some big file, but there are rules for generate these files Ex . ============================== Start input a [0] wire input a [1] wire .. .. .. .. input a [1000] wire End ================================= Dose there any tcl script can help to translate a file with embedded tcl script into a new file For example this is a source file ======================== Start * set i 0 * for { set i 0 } { $i < 1000 } { incr i } { * puts input a [$i] wire * } End ========================== After Translate ======================= Start input a [0] wire input a [1] wire .. .. .. .. input a [1000] wire End ======================= Gogo12 wrote: > > Hi > I need to generate some big file, but there are rules for generate > these files > Ex . > ============================== > Start > input a [0] wire > input a [1] wire > . > . > . > . > input a [1000] wire > End > ================================= > > Dose there any tcl script can help to translate a file with embedded > tcl script into a new file > For example > > this is a source file > ======================== > Start > * set i 0 > * for { set i 0 } { $i < 1000 } { incr i } { > * puts input a [$i] wire > * } > End > ========================== > > After Translate > ======================= > Start > input a [0] wire > input a [1] wire > . > . > . > . > input a [1000] wire > ...

How to write tcl generated xml file into a new file
Hi, I have generated a xml file using xmlgen. After running the tcl script the ouput is displayed on the terminal . I want to take the terminal output into a xml file. Any Suggestion ???/ Thanks Ranjan On Nov 25, 12:46=A0pm, gyana behera <ranjan....@gmail.com> wrote: > Hi, > > I have generated a xml file using xmlgen. > After running the tcl script the ouput is displayed on the terminal . > I want to take the terminal output into a xml file. > > Any Suggestion ???/ > > Thanks > Ranjan Either redirect the output of the script to the xml-file. (xmlgen > output.xml) or open the file in the script: set f [open $filename w] then use puts $f instead of puts to output to the file and finally close the file: close $f Note that all this is covered in the Tcl tutorial, which is definitely worth a visit. (http://www.tcl.tk/man/tcl8.5/tutorial/ tcltutorial.html) Mark ...

[Tcl] file copy does not "touch" file. Why?
In a situation, when both source and destination files exist, file copy (with -force of course) does not update the last modification time of the destination file. This "feature" has a strong impact on cooperation with 'make'. Is that really intended? I have to do 'touch' externally to make it correct. The external "cp" command on unix does touch the destination file. -- // _ ___ Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl> \\ L_ |/ `| /^\ ,() <ethourhs(O)gmail.com> // \_ |\ \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx "I am allergic to Java because programming in Java reminds me casting spells" Sektor van Skijlen wrote: > In a situation, when both source and destination files exist, file copy (with > -force of course) does not update the last modification time of the > destination file. This "feature" has a strong impact on cooperation with > 'make'. It's that way because it makes it easier to do archival backups. If you want the mtime of the destination to be *now*, try this: proc creatingFileCopy {source destination} { file copy $source $destination file mtime $destination [clock seconds] } You might argue that there should be an option to tell [file copy] to not copy the metadata. I'd probably not argue the matter, but currently the metadata copy is done, since it's part of pr...

Tcl script for creating folders on multiple remote servers from local machines and transfer files to those servers into created folder
Hi all, I am newbie in Tcl. I have just started learning Tcl fundamentals I want to code a script that does the following. 1) Reads a file in which server names and corresponding ip addresses are saved. (Approx 5) name1 <space> xxx.xxx.x.xxx name2 <space> xxx.xxx.x.xxx name3 <space> xxx.xxx.x.xxx name4 <space> xxx.xxx.x.xxx name5 <space> xxx.xxx.x.xxx -this is file which will be having server name and ip addresses as above format. 2) Takes 1st name and ip, telnet to the server, enters username and password. 3) creates a directory. 4) Transfers the file via FTP to created directory. 5) logout from the server. 6) Reads second entry in the file repeats from step2 until all server IPs are not covered. I am able to make a directory by using telnet session and by using list (for server name and IPs). But I am unable to use file for getting name and IPs of server. And also transfer a file via FTP to created Directory. Can you please help me Hi kj, I can't help you with all of that. I have no idea how to do that, but from what I know, Expect is the tool you should look for, which seems to work with Tcl as well: http://wiki.tcl.tk/201 I guess you can write a script and Expect knows Tcl commands and extends Tcl with some more commands to do the server/login-stuff. ############################### namespace eval ::srvupdate {} proc ::srvupdate::ReadSrvs {} { set srv_file "../servers.dat" set ret_list [list] if [catch {open ...

tcl-syslog: Unix system logging for Tcl (Tcl package)
This is an announcement for a relatively new Tcl project: tcl-syslog Tcl-syslog is a Tcl interface to the *nix syslog service. It provides a Tcl package that allows Tcl scripts to log messages to syslog. Platform: Linux/Unix Home page: http://sourceforge.net/projects/tcl-syslog/ Man page: http://tcl-syslog.sourceforge.net/ Author: Alexandros Stergiakis alsterg ...

How to capture the output from TCL prompt and save it to a file on Linux file system.
Hello All, I login to TCL prompt and run a simple query which lists few rows. I want to capture those rows and save it to a file on file system. I am working on a Sun Solaris ver. 5.9. Here is the sample query that i run from TCL prompt: >SELECT DISTINCT CATEGORY FROM DS_JOBS; And the Resultant set looks like this: Category............ ABC\ACEIQ\JOBS\C UST_SPCLTY ABC\ACEIQ\JOBS\C UST_SPC SSHIP\SEQ PLIC\CNTRL Any advise is greatly appreciated. Thanks Vini On Mar 22, 7:26=A0pm, Vini <vinay.renukun...@gmail.com> wrote: > Hello All, > > I login to TCL prompt and run a simple query which lists few rows. I > want to capture those rows and save it to a file on file system. I am > working on a Sun Solaris ver. 5.9. > > Here is the sample query that i run from TCL prompt: > > >SELECT DISTINCT CATEGORY FROM DS_JOBS; > > And the Resultant set looks like this: > > Category............ > > ABC\ACEIQ\JOBS\C > UST_SPCLTY > ABC\ACEIQ\JOBS\C > UST_SPC > SSHIP\SEQ > PLIC\CNTRL > > Any advise is greatly appreciated. Wrong group. You mean "SQL" rather than "TCL". -Alex On Mar 22, 2:30=A0pm, Alexandre Ferrieux <alexandre.ferri...@gmail.com> wrote: > On Mar 22, 7:26=A0pm, Vini <vinay.renukun...@gmail.com> wrote: > > > > > > > > > > > Hello All, > > > I login to TCL prompt and run a simple query which lists few rows. I > > want...

Drift file/Log files don't get created
Hi,=20 =20 I think I should start off by saying I'm very new to NTP, so if the answer to this seems stupidly obvious to you, it's probably correct. Please let me know of any other information you people would find useful in helping me out. =20 I've installed the NTPD on a windows 2003 server (I downloaded the installer GUI from the Meinberg site). The ntp.conf file has the following lines: =20 server x.x.x.x prefer #<-- this is the IP of a GPS source. It gets recognized by ntpq -p as a Stratum 1 logconfig =3Dall logfile "C:\Program Files\NTP\etc\ntp.log" driftfile "C:\ Program Files\NTP\etc\ntp.drift" statsdir "C:\ Program Files\NTP\etc\ntpstats" =20 No files or folders are written anywhere, even after overnight tests. Are these commands even supposed to work under a Windows environment?=20 =20 Thanks! =20 PS. I've also got problems involving a large offset but I'd like to address these simpler ones first. =20 Derek Flake Video Networks (613) 785-7099 derek.flake@bell.ca =20 _______________________________________________ questions mailing list questions@lists.ntp.isc.org https://lists.ntp.isc.org/mailman/listinfo/questions derek.flake@bell.ca wrote: > installer GUI from the Meinberg site). The ntp.conf file has the > following lines: > > server x.x.x.x prefer #<-- this is the IP of a GPS > source. It gets recognized by ntpq -p as a Stratum 1 > > logconfig =all > > l...

How does the Tcl interpret handle results returned from C-created Tcl commands ?
I've ventured on creating a Tcl command trough a C routine. I've followed the manual guidelines. My C routine checks the validity of a selected option for the currently displayed histogram. Therefore it returns a Boolean value that, according to the C <-> Tcl communucation protocol, I have encoded as TCL_ERROR (= FALSE) and TCL_OK (TRUE). WHenthis command is called in a Tcl proc, the interpreter is supposed to perform two different actions according to the returned Boolean value. How can I fetch this returned Boolean result (TCL_ERROR/ TCL_OK) from the Tcl proc that executes the C-created command ? What if I wrote 1 (FALSE) or 0 (TRUE) in a string and have the C routine return this 1-character string ? Would it be easier to get the result of the teest from the caling TCL proc ? Please, find in the following the code that implements (according to my best resolution) the C-created command and the callind Tcl proc. Thank you, Maura ************************************************************************************************************* * C routine * ************************************************************************************************************* static int check_hist_aint_option_cb( ClientData clientData, Tcl_Interp *interp, int argc, char *argv[] ) { int i; if ( hg.active_ &...

tcl-inotify: File & directory level notifications for Tcl. (extension)
This is an announcement for a relatively new Tcl project: tcl-inotify. Tcl-inotify is a Tcl interface to the linux kernel's inotify* service. It provides a Tcl package that enables Tcl scripts to monitor the file system changes at a file and directory level. A large number of file/directory actions can be monitored. A proc is executed asynchronously to notify for changes. * inotify is a Linux kernel subsystem that provides file system event notifications. It was written by John McCutchan with help from Robert Love and later Amy Griffis to replace dnotify. It was included in the mainline kernel starting from release 2.6.13, and could be compiled into 2.6.12 and possibly earlier releases by use of a patch. Its function is essentially an extension to filesystems to notice changes to the filesystem, and report those changes to applications. Home page: http://sourceforge.net/projects/tcl-inotify/ Man page: http://tcl-inotify.sourceforge.net/ Author: Alexandros Stergiakis alsterg ...

redirecting tcl commands on the console window to a file
I'm trying to write a tcl extension for redirecting tcl commands on stdin to a file. I created a thread in the tcl extension to listen on the stdin and then it calls Tcl_CompleteCommand to see if it is a complete command or not and if yes, it calls Tcl_Eval But it is not working great... as I'm having to hit unwanted enters and it is not very responsive most of the times. Any help is greatly appreciated On 22 Sep., 09:02, Suresh <sureshnagar...@gmail.com> wrote: > I'm trying to write a tcl extension for redirecting tcl commands on > stdin to a file. > I created a thread in the tcl extension =A0to listen on the stdin and > then it calls > Tcl_CompleteCommand to see if it is a complete command or not and if > yes, it calls Tcl_Eval > > But it is not working great... as I'm having to hit unwanted enters > and it is not very responsive most of the times. > > Any help is greatly appreciated given following code in a file named interp << #!/usr/bin/tclsh set command "" set sound 1 while {[gets stdin line] > -1} { append command $line if {[info complete $command]} { eval $command set command "" } else { if {$sound} {puts [format %c 7]} } } >> (however this is the standard behaviour of tclsh, except the bell sound) I suppose Tcl_CompleteCommand is what "info commplete" does, check for unclosed braces, quotes, brackets or aray elements. If none of quotes or bra...

Drift file/Log files don't get created + more questions
Thanks, I'll try that right away. Just out of curiosity, if the ntp.drift file never gets created, what is the worst that can happen?? After about a week without it, I noticed the offset start to climb (from 1ms to 30ms to up to 900ms). Restarting the service didn't fix things until I changed the ntp.conf file. Is this related to the drift file now working? =20 The changes made to the ntp.conf file included getting the drift file to write, as well as logfile and statsdir, and also several restrict statements to allow the proper clients such as: restrict default ignore restrict 10.x.x.x nomodify notrap =20 During the above mentioned week, none of these 'restrict' commands were written to the ntp.conf file. Is it possible that the loss of sync was caused by the 'NTP machine' (a Windows 2003 box syncing to a GPS device) trying to use its clients' time as well as the 'server' listed in its ntp.conf file? (There was only the one GPS server listed and the LOCAL clock.) =20 Several clients sync to the 'NTP Machine' using some unknown proprietary software to sync to NTP. They are black boxes that I don't have access to, but they need an NTP source in order to boot up. Does the notrap command possibly prevent the clients from messing with the NTP Daemon software running on the 'NTP Machine'? I still haven't been able to find a good explanation for what this command does. This problem seems to have been resolved, but it w...

TCL/PHP/XML problem: I need to convert an XML file into a TCL list
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: [TCL] set contents [read $fileID [file size ${fileName}.xml]]; close $fileID if {![string equal $switch -body]} { # ONLY DO THIS IF THE XML CONTENTS CONTAIN NO BODY - WILL UPGRADE AT A LATER DATE 11/24/2006 - PHIL global serverName if {![info exists serverName]} { global env source ./cgi_globals.tcl global serverName } if {[string length [info procs {URL_ENCODE}]] == 0} { source...

Komodo: Accessing widgets in the auto generated _ui.tcl from the associated .tcl file
I am using Komodo. I created a text widget and want to insert some text into it. The below is my ui.tcl file (ie. Dialog_ui.tcl). In my Dialog.tcl file I want to have access to the $base._text_log widget, so I can insert text into it. For eg. I've tried: ::Dialog::._text_log insert end "hello world!" And other variations, but have not succeeded. This seems to be something trivial, but I can't seem to figure it out. I also tried to get to the BASE variable, but was also unsuccessful. I guess my understanding of namespaces isn't correct. Is it even possible? Help is very very much appreciated. Thank you! # Below is the gui code in Dialog_ui.tcl # Declare the namespace for this dialog namespace eval Dialog {} package require Tk # Dialog::ui -- # # Create the UI for this dialog. # # ARGS: # root the parent window for this form # args a catch-all for other args, but none are expected # proc Dialog::ui {root args} { # this handles '.' as a special case set base [expr {($root == ".") ? "" : $root}] variable ROOT $root variable BASE $base # Widget Initialization text $base._text_log \ -height 0 \ -width 0 \ -xscrollcommand [namespace code [list _text_log_xscrollcommand]] \ -yscrollcommand [namespace code [list _text_log_yscrollcommand]] # Geometry Management grid $base._text_log -in $root -row 1 -column 1 \ -columnspan 1 \ -ipadx 0 \ -ip...

Can I compile a tcl/tk extended C file into an exe file on windows?
I'm new to tcl/tk. I have a simple tk/tcl extended C file like this, #include <stdio.h> #include <stdlib.h> #include <tcl.h> #include <tk.h> int Tcl_AppInit(Tcl_Interp* interp) { int status; status = Tcl_Init(interp); if (status != TCL_OK) { return TCL_ERROR; } /* Initialize Tk values. */ status = Tk_Init(interp); if (status != TCL_OK) { return TCL_ERROR; } return TCL_OK; } int main(int argc, char** argv) { Tk_Main(argc, argv, Tcl_AppInit); return 0; } Can I compile this file into an exe file on windows? How? Thank you ysrise@gmail.com (yan) writes: [snip[ ...

Choosing log file destination in logging configuration file
Hey, I have a sort of petty-neurotic question, I'm kinda pedantic and like to keep my log directories clean, and this thing is bothering me to the point of actually posting a question (couldn't find any post about this..). My application has two types of components: daemons and regular ones that are run every on crontab. Because the log structure is very similar, I want both to use the same logging configuration file. For clarity, I want all of the files to have the date as part of the filename. The TimedRotatingFileHandler has it built in (once it rotates), and I found a dirty hack...

log file sync , log file parallel write
Hi , my top wait list shows 2 events , log file sync and log file parallel write in 1 hour. During this time , the db server created 370,594 bytes redo per second. the docs say that high value of both log file sync and log file parallel write indicates io problem . How can we decide whether below numbers are close to each other or not? If it is not possible to change the application and eliminate the unnecessary commits (such as sap) , how can lg file sync be decreased? Kind Regards Load Profile ~~~~~~~~~~~~ Per Second Per Transaction ...

LOG FILES inonconfig file
Hi all, I am new to informix. I would like to know how to calculate the rootdbs 1) Is it (Logfiles x log size) + (PHYsical log) + some schemas ? 2) Can i have a small value of Log file log size and physical log during initialization and increase after the initialization by just restarting the server.( i will increase the rootdbs by adding a large chunk from other disk) 3) i have a part of roodbs on one LV (logicalvolume) and other on ther LV and VG also. 4)If i add a new chunk to rootdbs ,do i need to make any change to onconfig file Thanks. doitman wrote: > Hi all, > > I am new to informix. > > I would like to know how to calculate the rootdbs > > 1) Is it (Logfiles x log size) + (PHYsical log) + some schemas? Unless you want to place your logical and physical logs in one or more separate dbspaces - which is recommended BTW - that's about right. If you will be moving the logs after initialization to different dbspaces you only have to allocate space for the initial 6 logical logs and the default physical log. > 2) Can i have a small value of Log file log size and physical log > during initialization and increase after the initialization by just > restarting the server.( i will increase the rootdbs by adding a large > chunk from other disk) Yes, you need a minimum of 3 logical logs in order to initialize the server and the default/sample ONCONFIG file creates six for you if y...

Log Files and Results Files
I am seeking an opinion on what goes in each file in an automated test environment. I have two types of data: 1. Test Execution Outcomes, Case Data Values, etc. i.e. the outcome of the test and enough data to repeat the test. (quite a bit of data) 2. Detailed test execution data that would be used to investigate failures and unexpected incidents but that is not referred to if the tests pass. (Lots and lots of data) I have two files: a. Log file. b. Results file. What data set goes into what file? I am asking to help resolve a "discussion" in the office. Thanks Glenn ...

Web resources about - How to create log file and command journal files for a TCL session - comp.lang.tcl

Command - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

How to free up RAM from the command line
... is using more RAM than it should, then there is one small and very simple tool which might be able to help. Empty Standby List is a free command ...

Space graffiti discovered inside Apollo 11 command module
Workers at the Smithsonian National Air and Space Museum uncover astronauts' scribbles that haven't been seen for 40 years.

3 command line tips OS X users need
... and troubleshooting features every Mac user should get to know. Many of these tools require use of the Terminal app . This is a command line ...

Alexa Surprises Amazon Echo Owners By Obeying Commands She Heard On The Radio
... direct the Amazon Echo’s Alexa to turn down the smart lights, what happens if the digital personal assistant starts hearing other voices commanding ...

This simple command will keep your Mac apps bleeding edge
Here’s a surprising fact: by default, OS X only checks for software updates once a week. That’s shockingly infrequent, considering the fact that ...

Barbie's new Dreamhouse goes full IoT with voice commands
Last year, Mattel debuted its WiFi-enabled Hello Barbie to make playtime a bit more interactive. A connected doll needs an internet-friendly ...

Command-And-Control Management Is For Dinosaurs
Is your company stuck in Command-and-Control Management?

Watch Scott Kelly Relinquish Command of the International Space Station
As America braces itself for another seven months of bickering over which suited flesh puppet most deserves to lead our country for the next ...

Jon Snow's Command Is Questioned in the First Deleted Scene from Game of Thrones Season 5
The Night’s Watch storyline in Game of Thrones last year was all about Jon’s struggle with command, both mentally and... uh, physically, especially ...

Resources last updated: 3/13/2016 3:20:00 PM