here we go:
#!/usr/bin/tclsh
package require Tclx
foreach i $various_Shell_Scripts {
set child [fork]
if {$child == 0} {
cd [lindex $i 0]
set runcmd [list exec $i]
puts "Running:\ncd [lindex $i 0]\n$runcmd\n\n"
if {[catch $runcmd]!=0} {
error...
Cheers dudes
after hours of research I found that using Tclx was the best option...
I fork my everytime I need to launch a shell script à la C, in the mean time I count how many fork call there is and I loop with a wait inside for the children to complete.
Easiest and fastest way. I have to...
Hi guys,
I was wondering how to run shell scripts using the tcl exec function and wait for them to finish until I can start the next command...
Long story short:
foreach i $various_Shell_Scripts {
# the commands in each $i are rather complex and long and
# I want to execute them in the...
I've tried everything, but I can output a string with a specific color assigned to it.
Is any one familiar with that?
Note that this is a tcl only script, I'm not using tk at all.
Cheers mate
Hi guys, it's been a long time...
Anyway, I'm trying to create a scrollable frame using only tk.
I tried with text widgets containing other widgets but the scrollbar associated with the text widget won't scroll if the widgets are displayed outside the text widgets.
here is my dirty code:
<code>...
thank you so much guys.
No there is no need to use regexp. I just thought it would be nicer instead of using a foreach.
I guess there is not many other solutions, or is there?
Hello guys,
trying to compute the regexp for this problem, but I can't get it right.
Here is the string
the string is only composed of at maximum one of each of the following letter A, F, P, and G.
and it can include all the them (so max size is 4)
so a valid result could be
A
AG
APG
AGF
GFAP...
Yeah I know, the solution might be to change the OS charset then run the application then switch the charset back...
But I do not know how to change the charset of the OS (Linux) within the shell...
Anyone?
I'm trying to force my program to run using a different character set, will this works (I wanna use ISO-8859-1 instead of the UTF-8 by default) :
javaw -Dclient.encoding.override=ISO-8859-1
Thank you guys :)
I need a tktable.2.9.so for a SunSolaris 5.8 (Sparc)
I can't get my hand on it nor can I compile it.
I've found Tktable.so.2.6 which works but is only tktable 2.6 and some stuff are not implemented properly...
please help :)
Hello,
I'm trying to use freewrap in order to produce a standalone application.
However, I'm using Iwidgets, tktable and the math package.
I can't succeed to include them in the wrapper.
What am I missing?
Anyone familiar with that procedure?
Cheers
Hi everyone,
I know jack sh*t in fortran and I need to provide to a lib written in fortran a char * that with the fortran end of string character instead of the \0
that will only take a memset but I need to know the code of such a character.
Anyone to fill me up on this one?
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.