10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings all,
Been trying to do my Googling and forum searches but can't seem to lock in on a solution.
I have a script that parses a log and collects all the uniq events to a flat file. Some days might have 50 unique events, other days might have 75. (Hence my reference to dynamic.)
... (2 Replies)
Discussion started by: sjrupp
2 Replies
2. Web Development
Hey everyone. Thanks for looking at this.
I'm trying to create a table with the dynamic name of TableName + today's date.
My variables are all happily created but the system chokes when I try to create the new table name example:
Set @BFBW = CONCAT("BFBW", CURDATE());
Select @BFBW;
... (2 Replies)
Discussion started by: Astrocloud
2 Replies
3. Shell Programming and Scripting
Hi,
I got a requirement to automate the process.
We have SLA files, there are some 80 SLA files comes from 1.30pm - 5.30pm.
I was asked to write a script to check for the SLA files in the load directory, if the files come then we got to send the mail to the group, if the mails doesnt come... (1 Reply)
Discussion started by: afahmed
1 Replies
4. UNIX for Advanced & Expert Users
I have a file that reads File (X.txt)
Contents of record 1:
rdrDESTINATION_ADDRESS (String) "91 971502573813"
rdrDESTINATION_IMSI (String) "000000000000000"
rdrORIGINATING_ADDRESS (String) "d0 movies"
rdrORIGINATING_IMSI (String) "000000000000000"
rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies
5. Shell Programming and Scripting
I'm using the korn shell and trying to create a case statement from the contents of a file that is changed regularly,
each line of the file has three fields,
eg
track1 202.111.111.111 99
room7 222.111.222.333 76
I'm using awk to select each variable. I've been unable to figure out how to... (5 Replies)
Discussion started by: squrcles
5 Replies
6. UNIX for Dummies Questions & Answers
hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards.
I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies
7. Programming
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Discussion started by: kmehta
4 Replies
8. Shell Programming and Scripting
i want to create an array
the array elements are populated depending upon the number of entries present in a data file
The data file is created dynamically
how to achieve the same
thanks (1 Reply)
Discussion started by: trichyselva
1 Replies
9. Shell Programming and Scripting
Hello
I am trying to create a dynamic ksh script and I have an issue.
I have a script a.ksh and it has got the following lines (for example)
#!/bin/ksh
# trace mode +x : without trace -x : with trace
set +xv
echo hi, i am going to create a dynamic script now
cat >> dynamic.ks <<EOF... (2 Replies)
Discussion started by: sundarkumars
2 Replies
10. Shell Programming and Scripting
Hi,
Is it possible to create a dynamic array in shell script. I am trying to get the list of logfiles that created that day and put it in a dynamic array. I am not sure about it. help me
New to scripting
Gundu (3 Replies)
Discussion started by: gundu
3 Replies
ttk::checkbutton(n) Tk Themed Widget ttk::checkbutton(n)
__________________________________________________________________________________________________________________________________________________
NAME
ttk::checkbutton - On/off widget
SYNOPSIS
ttk::checkbutton pathName ?options?
_________________________________________________________________
DESCRIPTION
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.
STANDARD OPTIONS
-class -compound -cursor
-image -state -style
-takefocus -text -textvariable
-underline -width
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC 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.
WIDGET COMMAND
In addition to the standard cget, configure, identify, instate, and state commands, checkbuttons support the following additional widget
commands:
pathname invoke
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
-command.
WIDGET STATES
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.)
STANDARD STYLES
Ttk::checkbutton widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.
SEE ALSO
ttk::widget(n), ttk::radiobutton(n), checkbutton(n)
KEYWORDS
widget, button, toggle, check, option
Tk 8.5 ttk::checkbutton(n)