02-04-2008
What for?
Or why?
Do you realize what is being asked?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i need to search for a single pattern in three different logs....what would be the best one line script???? (4 Replies)
Discussion started by: roshanjain2
4 Replies
2. UNIX for Dummies Questions & Answers
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Discussion started by: baluchen
2 Replies
3. UNIX for Advanced & Expert Users
Hello,
I'm looking for some code that will list sequences of files as a single line.
ie, sequences of files like this:
filename.1.ext
filename.2.ext
filename.3.ext
filename.4.ext
filename.5.ext
filename.6.ext
filename.7.ext
filename.8.ext
filename.9.ext
filename.10.ext
would... (6 Replies)
Discussion started by: kentm
6 Replies
4. Solaris
Hii All
I was building two M4000 servers and one was successfully installed.
Other one /usr has been unmounted. my putty session got disconnected and i connected to console where it asked for root single maintence
#
# init 0
not foung
# df -h
not found
#
xscf>poweroff -a
xscf>... (8 Replies)
Discussion started by: seems
8 Replies
5. UNIX for Dummies Questions & Answers
Normally i would do this-
cd abc
ls -ltr
I wish to run above command in a single line, like this-
cd abc | ls -ltr
But above command doesn't works, it simply runs the second command, ignoring the 1st one.
:confused: (4 Replies)
Discussion started by: boy18nj
4 Replies
6. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
7. Shell Programming and Scripting
myenv.sh script sets LOG_DIR variable.
I can run the script and echo the variable in a single line as:
# First set LOG_DIR to some dummy 'NONE' value
$ export LOG_DIR="NONE"
$ echo ${LOG_DIR}
NONE
$ cat /tmp/bin/myenv.sh
export LOG_DIR="/tmp/log"
#The below command doesn't show the... (2 Replies)
Discussion started by: ysrini
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
9. Solaris
Hi,
I have Solaris-10 OS on T5220. Both local disks were mirrored under SVM. Somehow when one disk gone bad (c0t1d0), other disk (c0t0d0) also got lot of bad block. We have readable data only on c0t0d0, but as soon as server comes after, it hangs when I run few commands because of read errors,... (1 Reply)
Discussion started by: solaris_1977
1 Replies
10. Shell Programming and Scripting
Hi All,
How can i run a single command on multiple servers with or without giving credentials.
I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server.
I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
LEARN ABOUT SUSE
xtisrealized
XtRealizeWidget(3) XT FUNCTIONS XtRealizeWidget(3)
NAME
XtRealizeWidget, XtIsRealized, XtUnrealizeWidget - realize and unrealize widgets
SYNTAX
void XtRealizeWidget(Widget w);
Boolean XtIsRealized(Widget w);
void XtUnrealizeWidget(Widget w);
ARGUMENTS
w Specifies the widget.
DESCRIPTION
If the widget is already realized, XtRealizeWidget simply returns. Otherwise, it performs the following:
o Binds all action names in the widget's translation table to procedures (see Section 10.1.2).
o Makes a post-order traversal of the widget tree rooted at the specified widget and calls the change_managed procedure of each compos-
ite widget that has one or more managed children.
o Constructs an XSetWindowAttributes structure filled in with information derived from the Core widget fields and calls the realize pro-
cedure for the widget, which adds any widget-specific attributes and creates the X window.
o If the widget is not a subclass of compositeWidgetClass, XtRealizeWidget returns; otherwise, it continues and performs the following:
- Descends recursively to each of the widget's managed children and calls the realize procedures. Primitive widgets that instanti-
ate children are responsible for realizing those children themselves.
- Maps all of the managed children windows that have mapped_when_managed True. (If a widget is managed but mapped_when_managed is
False, the widget is allocated visual space but is not displayed. Some people seem to like this to indicate certain states.)
If the widget is a top-level shell widget (that is, it has no parent), and mapped_when_managed is True, XtRealizeWidget maps the widget
window.
The XtIsRealized function returns True if the widget has been realized, that is, if the widget has a nonzero X window ID.
Some widget procedures (for example, set_values) might wish to operate differently after the widget has been realized.
The XtUnrealizeWidget function destroys the windows of an existing widget and all of its children (recursively down the widget tree). To
recreate the windows at a later time, call XtRealizeWidget again. If the widget was managed, it will be unmanaged automatically before its
window is freed.
SEE ALSO
XtManageChildren(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.0.7 XtRealizeWidget(3)