10 More Discussions You Might Find Interesting
When I compile thic program by gcc filename, it shows no error.
But after that if I execute the program gets stuck.
Can any one find out.
#include<sys/stat.h>... (6 Replies)
Discussion started by: gokult
NO errors, but when I try to execute the program it gets struck.
Can any one find it out.
... (0 Replies)
Discussion started by: gokult
3. Shell Programming and Scripting
I have a touble with executing a variable that stores a unix command string.
The following would be excuted fine:
However, the following gives me an error:
command='(uuencode file1 file1; uuencode file2 file2) | mailx email_id'
`echo... (1 Reply)
Discussion started by: sagewise
4. Shell Programming and Scripting
I'm using whatever the scripting is in this copy of busybox ! So not the full boxed set sometimes.
If I do
the system prints "fred"
if I do
Is there a simple way to put a varabble assignment in a string and execute it?
... (2 Replies)
Discussion started by: dexdyne
5. Shell Programming and Scripting
I'm building an installation system that uses separate data
files that contain the individual characteristics of each package.
Within the data file, I would like to incorporate a section that
contains a bash script that is loaded into an array which is
then redirected to bash to be... (13 Replies)
Discussion started by: ASGR
6. Shell Programming and Scripting
Here is my problem: I try to write a script that searches for files with several extensions using the find utility. The file extensions are defined in a list so I build a string (variable) of the pattern arguments with these extensions but can't get find working. Here is a code... (3 Replies)
Discussion started by: Ro_land
7. Shell Programming and Scripting
I am executing the below in telnet
File1=simple.txt # The file to check
LogFile=simple.log # The log file
DelayMax=30 # Timeout delay
# BEGIN ##############################
StampNow=$(date +%s)/60 # stamp in minutes
... (3 Replies)
Discussion started by: chinniforu2003
8. Shell Programming and Scripting
I am trying to pass a command as argument to a function.
The command shows up in $1.
Now I want to execute this command, but if I do a $1
"bla/blaprintf: warning: ignoring excess arguments, starting with `bla/bla'
The code is :
fn... (3 Replies)
Discussion started by: shriyer
9. Shell Programming and Scripting
I need some help with my shell script :(
I am sending a shell command from a html text input to a cgi. Then, I store it into a variable. For example
This functions properly. But consider the following...
var="ps -axu | grep root"
Now, I want... (2 Replies)
Discussion started by: Nene
10. Shell Programming and Scripting
I am trying to export some 50 tables and i want to write a loop and execute the script for every table. I did for one table and its running. Can any one help me for setting a loop and running the script for all the tables
thanks (6 Replies)
Discussion started by: srichunduru
ttk::checkbutton(n) Tk Themed Widget ttk::checkbutton(n)
ttk::checkbutton - On/off widget
ttk::checkbutton pathName ?options?
A ttk::checkbutton widget is used to show or change a setting. It has two states, selected and deselected. The state of the checkbutton
may be linked to a Tcl variable.
-class -compound -cursor
-image -state -style
-takefocus -text -textvariable
See the ttk_widget manual entry for details on the standard options.
[-command command] A Tcl script to execute whenever the widget is invoked. [-offvalue offValue] The value to store in the associated
-variable when the widget is deselected. Defaults to 0. [-onvalue onValue] The value to store in the associated -variable when the widget
is selected. Defaults to 1. [-variable variable] The name of a global variable whose value is linked to the widget. Defaults to the wid-
get pathname if not specified.
In addition to the standard cget, configure, identify, instate, and state commands, checkbuttons support the following additional widget
Toggles between the selected and deselected states and evaluates the associated -command. If the widget is currently selected, sets
the -variable to the -offvalue and deselects the widget; otherwise, sets the -variable to the -onvalue Returns the result of the
The widget does not respond to user input if the disabled state is set. The widget sets the selected state whenever the linked -variable
is set to the widget's -onvalue, and clears it otherwise. The widget sets the alternate state whenever the linked -variable is unset.
(The alternate state may be used to indicate a "tri-state" or "indeterminate" selection.)
ttk::widget(n), ttk::radiobutton(n), checkbutton(n)
widget, button, toggle, check, option
Tk 8.5 ttk::checkbutton(n)