I think you should escape your "\" on your paths.
like this:
exec cscript.exe c:\\tcl\\sample.vbs
I made a minimal script (which just shows a MsgBox) and it works with the tcl code shown above.
First create a full date adding today's date...
% set Date1 "[clock format [clock seconds] -format %m/%d/%Y] 02:35:00"
01/21/2005 02:35:00
% set Date2 "[clock format [clock seconds] -format %m/%d/%Y] 02:45:00"
01/21/2005 02:45:00
Then get the seconds values out of those dates
% set numDate1...
How to search two words that are in separate-
consecutive lines in a text widget using its
search command?
I have something like:
Test 23
PASS
Test 24
FAIL
so far, I am just able to find pattern within one line.
Thanks
Jorge Moreno
Marcio,
Have you seen the sample Tcl script ni provides?
seems like the mechanism to return control to test stand is by means of an output variable defined in the sequencer.
Then, whenever Tcl sets the variable, control is returned to test stand.
Jicote.
I think you have to read your source file line by line (using the gets command), then writing (puts) to your target file.
my understanding is that the source command is intended for multifile code, not for in/out between files.
good luck.
Jorge Moreno
Windows/DOS...
Do you know of any way to send keystrokes from Tcl to a DOS C program that waits for user input using function kbhit() in its source code?
what I understand is that this function cannot "listen" streams, i.e. redirection, is that true? any alternatives?
Thanks
Jorge
Mark,
I used a DOS program that just dumps some text to the console then waits for a "q" from the user, then exits.
Then I add/change few things in your code...
proc Run {} {
global command input log but
if [catch {open "|$command &" r+} input] {
$log insert end...
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.