ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Im writing a simple widgth in tcl/tk that will have 3 area: command line entry, log , and progrees bar ( pai chart style). with two button : run &quit.
it all work great but the progress bar ( I didnt wrote this part..:-) ).
could you please help me here to connect the progree bar to the main program?
now, it start automaticlly when the main window comes up. what I need is that the progree bar will start work when the user press the button "Run", and the progrees bar should reflect the real progrresion of the run. ( I attached at the end of the program the log file that I get- I guess by pharsing spacific words from it the progress bar can get update ?)
global command; set command $env(command)
#excelog - run a program with exec and log the output
# Set window tiltle
wm title . "Status Window"
# Create a frame for buttons and entry.
frame .top -borderwidth 10
pack .top -side top -fill x
#Create the command buttons
button .top.quit -text Quit -command exit
set but [button .top.run -text "Run it" -command Run ]
pack .top.quit .top.run -side right
# Create a labeled entry for the command
label .top.1 -text Command: -padx 0
entry .top.cmd -width 20 -relief sunken -textvariable command
pack .top.1 -side left
pack .top.cmd -side left -fill x -expand true
#set up key binding equivalents to the buttons
bind .top.cmd <Return> Run
bind .top.cmd <Control-c> Stop