Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by fl0ra

  1. fl0ra

    Open Tcl/tk window in workspace two

    or do you mean another desktop (linux desktop)? please be a tad bit more precise
  2. fl0ra

    exec and after...

    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...
  3. fl0ra

    exec and after...

    will give a code sample as soon as I get back to work (where it remains -lol-)
  4. fl0ra

    exec and after...

    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...
  5. fl0ra

    exec and after...

    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...
  6. fl0ra

    how to output colored text with a simple puts

    Thank you feherke :)
  7. fl0ra

    how to output colored text with a simple puts

    Yeah superbe it works!!! Thank you!!! Where can I find those color code then?
  8. fl0ra

    how to output colored text with a simple puts

    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
  9. fl0ra

    Scrollable frame with just Tk

    even forget the tags... :( It's been too long... here is goes, nicely readable scrollbar .sbar text .text -relief flat -yscrollcommand {.sbar set} .sbar configure -command ".text yview" labelframe .text.f1 -text "f1" -pady 5 labelframe .text.f2 -text "f2" -pady 5 labelframe .text.f3 -text...
  10. fl0ra

    Scrollable frame with just Tk

    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>...
  11. fl0ra

    regexp

    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?
  12. fl0ra

    regexp

    Thank you so much I am gonna test it, but it seems like it is gonna work :)
  13. fl0ra

    regexp

    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...
  14. fl0ra

    forcing the use of a character set

    ok cheers... :) I guess I'm gonna have to go on the linux forum and ask :)
  15. fl0ra

    forcing the use of a character set

    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?

Part and Inventory Search

Back
Top