I finally solved this, in case anyone else ever has the same question.
Options/bindings/main
You can add whatever command in there below already whats existing and it will be on a global scope (and get evaluated before anything else)
As I am trying to learn TCL/TK, I have found VTCL seems to be the most up to date GUI of the few I have played with so far, except it comes with zero documentation. (SpecTcl seems primitive?)
I cannot seem for the world of me how to set a variable for my program outside of a procedure. I want...
Ken,
I have been following your advice in this forum for a long time and have learned alot from you. Thanks for the clarification.
Perhaps you can assist me in this continued request.
I have written a piece of code that will show the status of my VSFTPD server, wether it is online or not...
This problem was solved by doing this
set f [open "|/etc/rc.d/init.d/vsftpd status 2>/dev/null" r]
set x [read $f]
close $f
Thanks for your time
Hmmmm this is an oddity. I am running the same exact specs.
I have another computer with Redhat 9.0, I just moved to it and tried the same command. Here are the results step by step. Perhaps I am not doing something right?
______________________________________________________________...
I can do this Linux command from TCL
set USER_NAME [exec id -nu]
puts $USER_NAME
IllegalOperation
But when I do a
set SERVER_STATUS [exec /etc/rc.d/init.d/vsftpd status]
I get
vsftpd is stopped
child process exited abnormally
The "vsftpd is stopped" is what I want, but the...
Wow guys, that certainly seems like some good information. I shall put it to work this weekend on my first project (first ever!) and I will report back how well I suceeded.
Indeed programming is difficult to learn over the internet!
Kind regards
Greetings. I would like to know if someone could be so kind as to show me how to do this one thing. Then I can study it and learn, and move on.
I have a simple canvas with a button and a display window.
When you click the button, it sends the command [df -k] which shows disk space usage in...
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.