10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, users file contains below names i have a requirement to keep only one case sensitive user. For e.g if user name is "aaa" then only aaa should be there in the file and other matching users(AAA,aaA) should be deleted.
Tried multiple options but no luck can you please help.
aaa
abc
AAA... (2 Replies)
Discussion started by: Satyak
2 Replies
2. Shell Programming and Scripting
Hi All,
select app from the menu:
ABC
DEF
GHI
JKL
ALL # ALL will select all the apps in the menu
echo "Enter your option"
read option;
if
then
<execute the below command>
elif # option is the 1 selection from menu...not ALL
<execute the below command>
else (14 Replies)
Discussion started by: Devaraj A
14 Replies
3. Shell Programming and Scripting
Hello all,
This is my first thread so please let me know if I am doing anything wrong or not following etiquette.
I have an input file that looks like
123a12345
345a12445
245a66792
245A12345
215A23566
and I want output files that look like
a.txt
123a12345
345a12445
245a66792
... (7 Replies)
Discussion started by: monstrousturtle
7 Replies
4. UNIX for Advanced & Expert Users
Can someone please tell me why iname is being case sensitive with this?
$ find /media -iname *load* 2>/dev/null
/media/Part 2/stuff/Downloads
/media/Part 1/Application Data/Mozilla/Firefox/Profiles/wnul4kj4.irc/chatzilla/downloads
/media/Part 1/Bob_5-22-2010/Application... (5 Replies)
Discussion started by: cokedude
5 Replies
5. UNIX for Dummies Questions & Answers
Is there a way for me to take a parameter then store it in a variable and use its value as non case sensitive?
Ex.
Lets say i have a parameter which contains "Hey".
Then im gonna store it to GR using GR=$1.
CL=/install/$GR.g
How can i make GR non case sensitive so that the... (1 Reply)
Discussion started by: khestoi
1 Replies
6. Solaris
I was instructed by my superior to change kernel parameter, adding up this parameter to /etc/system. Server is Solaris 10 on SPARC.
Tcp_conn_req_max_q 1024In my Google search, all I know that the sentence is in small case (tcp_conn_req_max_q) but as you can see above, instruction given... (4 Replies)
Discussion started by: Olli.Lang
4 Replies
7. Shell Programming and Scripting
In a Case switch, how to ignore case sensitive in the test:
e.g.
case "$field" in
"TEST) action1;;
*) action2;;
esac
How to go in action1 in case of $field = TEST , or Test , or test or .... without enumerating all possibilities...
Thanks,... (1 Reply)
Discussion started by: annelisa
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
Im newbie, can i disable case sensitive on RHEL environment, and how?
Thank you. (2 Replies)
Discussion started by: blesets
2 Replies
9. UNIX for Dummies Questions & Answers
Hello users,
I have a question ?
I was just wondering whether the hostname on unix systems are case sensitive.
For example in the system which I work.
ping TestHost and ping testhost gives me the same output i.e I get the reply from the remote host
Is this applicable for all... (3 Replies)
Discussion started by: ajphaj
3 Replies
10. UNIX for Dummies Questions & Answers
It has been quite a while since I used UNIX. I am developing
a security system and I was wondering if UNIX and/or LINUX
user ID's are case-sensitive.
i.e. can user 'daveb' and 'Daveb' exist on the same system with
completely different authorizations/priorities, etc.? (3 Replies)
Discussion started by: dmilleville
3 Replies
XtSetSensitive() XtSetSensitive()
Name
XtSetSensitive - set the sensitivity state of a widget.
Synopsis
void XtSetSensitive(w, sensitive)
Widget w;
Boolean sensitive;
Inputs
w Specifies the widget.
sensitive Specifies whether the widget should receive keyboard, pointer, and focus events.
Description
XtSetSensitive() sets the sensitivity state of w. If sensitive is False, then w and all of its descendants will become insensitive and
will not have any KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify, EnterNotify, LeaveNotify, FocusIn, or FocusOut events
dispatched to them. If sensitive is True, and if w's
XtNancestorSensitive resource is also True, then w and its children will be made sensitive again, except for any children that have explic-
itly been made insensitive by calling XtSetSensitive() or by setting their XtNsensitive resource.
See the "Background" section below for more details on the algorithm followed by XtSetSensitive() and on how the sensitivity of a widget
affects the sensitivity of its descendants.
Usage
Many widgets will display themselves differently when they are insensitive. A common approach is to draw themselves through a stipple mask
so that they appear grayed-out. XtSetSensitive() uses XtSetValues() when it sets the XtNsensitive and XtNancestorSensitive resources, so
widgets can check for changes to these resources in their set_values() method and take the appropriate action.
In an application, it is good style to make any widget insensitive if it does not currently make sense for the user to select it. A menu
item labeled "Delete Selected Items", for example, should be insensitive if there are not any currently selected items. A button that pops
up a modal dialog box should be made insensitive while that dialog box is popped up, so that the user cannot attempt to pop it up again.
You can test the sensitivity state of a widget by calling XtIsSensitive().
Note that you can also set the sensitivity of a widget by setting the XtNsensitive resource directly. It is better to use XtSetSensitive
because this handles composite widgets correctly. If you want a non-composite widget to be insensitive when it is created, you can specify
False for XtNsensitive from a resource file or an argument list. You can query the value of the XtNancestorSensitive resource, but you
should never set it.
Popup shells will have their XtNancestorSensitive resource set to False if their parent was insensitive when they were created. Since
XtSetSensitive() on the parent will not modify the resource in the popup child, you should either be sure that you only create popup shells
as children of sensitive widgets, or that you include a line like the following in your app-defaults file:
*TransientShell.ancestorSensitive: True
Background
Widget sensitivity is controlled by the sensitive and ancestor_sensitive fields in the Core instance record. XtNsensitive and XtNances-
torSensitive are the resource names for these fields. A widget can be insensitive because its sensitive field is False or because one of
its ancestors is insensitive. A widget can, but does not need to, distinguish these two cases visually.
XtSetSensitive() first calls XtSetValues() on the current widget to set the
XtNsensitive resource to the value specified by sensitive. If sensitive is False and the widget is a subclass of Composite, XtSetSensi-
tive() recursively propagates the new value down the children tree by calling XtSetValues() on each child to set ancestor_sensitive to
False. If sensitive is True and the widget is a subclass of Composite and the widget's ancestor_sensitive field is True, then XtSetSensi-
tive() sets the ancestor_sensitive of each child to True and then recursively calls XtSetValues() on each normal descendant that is now
sensitive to set ancestor_sensitive to True.
XtSetSensitive() ensures that if a parent has either sensitive or ancestor_sensitive set to False, then all children have ancestor_sensi-
tive set to False.
See Also
XtGetValues(1), XtIsSensitive(1), XtSetValues(1).
Xt - Resource Management XtSetSensitive()