10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
For various reasons I decided to rebuild my log server on a new microSD. To simplify matters I restored a backed up copy of the appropriate config files and uploaded them to the new log server once syslog-ng was setup. The issue I am running into now is when logrotate compresses the log... (3 Replies)
Discussion started by: MyUserName7000
3 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement to move zero byte files to an archive folder. I have the below script and it works fine if I run it from where the file is present. But when I run the script from different folder, I am getting error that file is not present. Please help.
#!/bin/ksh
... (11 Replies)
Discussion started by: Prasannag87
11 Replies
3. Shell Programming and Scripting
Hi,
I have task to merge multiple XML's to one big XML.
In doing this i have to calculate the byte size of each XML which i will be recieving as a string from a code and append all the recieved XML's to single file.
The reason being the byte size and the offset will help me to extract only... (7 Replies)
Discussion started by: chetan.c
7 Replies
4. IP Networking
Hi
I've a pkts trace and I'm performing some test on it. I'd like to figure out also the numbers of total byte in that trace.
Any idea?
thanks in advance
D. (0 Replies)
Discussion started by: Dedalus
0 Replies
5. Shell Programming and Scripting
Hi All
Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE.
Please suggest me something.
Thank's and regards
Vinay (1 Reply)
Discussion started by: vinayrao
1 Replies
6. Shell Programming and Scripting
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Discussion started by: krishmaths
4 Replies
7. UNIX for Dummies Questions & Answers
Char BYTE=0XFE... How can we find the number of Bits in this Byte?
Thanks,
Harika (4 Replies)
Discussion started by: harikamamidala
4 Replies
8. Programming
Hi all,
Can anyone advise on how to display the data in a byte variable, i.e can i use printf("%s", vairable_name);?
Cheers (2 Replies)
Discussion started by: dwgi32
2 Replies
9. Shell Programming and Scripting
Please help me in removing the 2nd file :
-rw-rw-rw- 1 fup03a fup03a 9216 Aug 16 00:45 med_delay_log
-rw-rw-rw- 1 fup03a fup03a 0 Aug 16 18:04 (5 Replies)
Discussion started by: miltonkeynesguy
5 Replies
10. Programming
Hi,
Can someone explain what is byte padding?
For ex:
struct emp{
char s;
int b;
char s1;
int b1;
long b3;
char s3;
}
What will be the size of this structure?
Thanks (6 Replies)
Discussion started by: naan
6 Replies
XtAppCreateShell() XtAppCreateShell()
Name
XtAppCreateShell - create a shell widget at the root of a widget tree.
Synopsis
Widget XtAppCreateShell(application_name, application_class, widget_class, display, args, num_args)
String application_name;
String application_class;
WidgetClass widget_class;
Display *display;
ArgList args;
Cardinal num_args;
Inputs
application_name
Specifies the resource name of the shell widget, or NULL.
application_class
Specifies the resource class to be used for the shell widget if it is of applicationShellWidgetClass or a subclass thereof.
widget_class
Specifies the widget class of the created widget. (normally applicationShellWidgetClass).
display Specifies the display on which the shell is to be created.
args Specifies the argument list to override other resource specifications.
num_args Specifies the number of arguments in the argument list.
Description
XtAppCreateShell() creates a shell widget of class widget_class on display display. The created widget has no parent-it is at the root of
a widget tree and at the top of the resource name hierarchy. The resource name of the widget is either application_name, or, if that is
NULL, the name that was passed to XtDisplayInitialize() or XtOpenDisplay() when the display was initialized. The resource class of the
widget is either application_class, if the widget_class is applicationShellWidgetClass or a subclass, or the normal class name of the wid-
get otherwise. The widget is created on the screen specified by the XtNscreen resource or on the default screen of display if no such
resource is found.
In X11R4, the XtNscreen and other resources are all obtained from args and from the database of display. In X11R5, however, there is a
resource database for each screen of a display, and the resources for the created shell widget are obtained somewhat differently: the argu-
ment list args is first scanned for a resource named XtNscreen, and if none is found, the database of the default screen of display is
searched for this resource. If the
XtNscreen resource is found the database from the specified screen is used for all the remaining resources of the widget. If the XtNscreen
resource is not found, the database of the default screen continues to be used. In either case, the resources in args override values in
the database.
Usage
Most applications can simply use XtAppInitialize() which initializes the toolkit, creates an application context, opens a display, and then
calls XtAppCreateShell() to create a shell on that display.
An application that wishes to have multiple toplevel windows on the same screen (a mail reader and a mail composer, for example) should
generally use XtCreatePopupShell() to create additional shells within the widget tree and resource hierarchy of the original shell. Creat-
ing multiple root shells with different names is generally not a good idea because then your application will have resources specified
under several different hierarchies. It is sometimes useful to create multiple root shells with the same name, however, if your applica-
tion is capable of creating multiple instances of itself. Each of these instances will find the same resources in the same database and
will appear to be "clones" of each other.
To create shells on multiple displays, open each display with XtOpenDisplay() and use the resulting Display * in a call to XtAppCre-
ateShell(). If all displays are initialized in the same application context, then all events will be correctly handled by XtAppMainLoop().
XtAppCreateShell() can also be used to create toplevel shells on multiple screens. Note that prior to X11R5, however, it is not possible
to maintain separate resource databases for each screen.
The specified widget class for the new shell widget should almost always be applicationShellWidgetClass or some subclass.
XtVaAppCreateShell() behaves identically to XtAppCreateShell(), but takes a NULL-terminated variable-length argument list of resource
name/resource value pairs rather than an array of Arg.
See Also
XtAppInitialize(1), XtCreatePopupShell(1), XtDisplayInitialize(1), XtOpenDisplay(1),
XtVaAppCreateShell(1).
Xt - Initialization XtAppCreateShell()