Sponsored Content
Top Forums Shell Programming and Scripting To find the RAM size for an Linux server. Post 302135749 by navojit dutta on Wednesday 12th of September 2007 05:25:33 AM
Old 09-12-2007
Hi Gurus,
Kindly help...Its very urgent.
thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Size of Installed RAM ?

Is it possible from the command line, or by looking at one of the log files to find out the amount of RAM installed on my SCO Unix 5.05 Server? I also need to find out H/Disk size and Processor speed but I think i'll do a search of the forums for those ones. Thanks RamblasPro (2 Replies)
Discussion started by: RamblasPro
2 Replies

2. UNIX for Dummies Questions & Answers

How to find RAM size in my Solaris 8

Hello there, I have a very basic question. It is so simple to find out all the information about system in windows environment. But I do not see any easy way to find it out in my Unix (Solaris 8) box. All I want to find out how much RAM I have in my solaris 8 box. Is there any command? ... (3 Replies)
Discussion started by: malikabid
3 Replies

3. Programming

getting RAM size

Sir, How can i get the RAM size .Is there is any predefined function ..Howsir??? Thanks In advance, ArunKumar (6 Replies)
Discussion started by: arunkumar_mca
6 Replies

4. HP-UX

RAM size

hi, while i am working in hpux 11.23 using a telnet connection how do i check the RAM size and hard disk size? (4 Replies)
Discussion started by: sekar sundaram
4 Replies

5. AIX

To find RAM Size in AIX as normal user?

Hi, Am jus trying to find the Total RAM Size of a AIX m/c (in MB)..svmon works perfectly for a superuser...But i want to achive this as a normal user...Please help me out with correct command.. Best Regards, Muthukumaran.M (3 Replies)
Discussion started by: muthukumaran13
3 Replies

6. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

7. UNIX for Dummies Questions & Answers

how to know RAM size

Hi can anyone please help me, how to know RAM specification in unix? (4 Replies)
Discussion started by: palash2k
4 Replies

8. Red Hat

red hat Linux 5.0 is detecting 3gb ram but physical ram is 16gb

Hi, On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

9. Red Hat

RAM Size

Can anyone let me know whether there is a command to know the RAM capacity in GB? I have tried cat /proc/meminfo and free.But its not in GB. I need to use it in script. Thanks and Regards (4 Replies)
Discussion started by: Rupaa
4 Replies

10. Linux

Find Page size in linux

Hi, How do i find Linux kernel page size using command ? Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies
XAllocWMHints(3X11)						  XLIB FUNCTIONS					       XAllocWMHints(3X11)

NAME
XAllocWMHints, XSetWMHints, XGetWMHints, XWMHints - allocate window manager hints structure and set or read a window's WM_HINTS property SYNTAX
XWMHints *XAllocWMHints() XSetWMHints(display, w, wmhints) Display *display; Window w; XWMHints *wmhints; XWMHints *XGetWMHints(display, w) Display *display; Window w; ARGUMENTS
display Specifies the connection to the X server. w Specifies the window. wmhints Specifies the XWMHints structure to be used. DESCRIPTION
The XAllocWMHints function allocates and returns a pointer to a XWMHints structure. Note that all fields in the XWMHints structure are initially set to zero. If insufficient memory is available, XAllocWMHints returns NULL. To free the memory allocated to this structure, use XFree. The XSetWMHints function sets the window manager hints that include icon information and location, the initial state of the window, and whether the application relies on the window manager to get keyboard input. XSetWMHints can generate BadAlloc and BadWindow errors. The XGetWMHints function reads the window manager hints and returns NULL if no WM_HINTS property was set on the window or returns a pointer to a XWMHints structure if it succeeds. When finished with the data, free the space used for it by calling XFree. XGetWMHints can generate a BadWindow error. PROPERTIES
WM_HINTS Additional hints set by the client for use by the window manager. The C type of this property is XWMHints. STRUCTURES
The XWMHints structure contains: #define InputHint (1L << 0) #define StateHint (1L << 1) #define IconPixmapHint (1L << 2) #define IconWindowHint (1L << 3) #define IconPositionHint (1L << 4) #define IconMaskHint (1L << 5) #define WindowGroupHint (1L << 6) #define UrgencyHint (1L << 8) #define AllHints (InputHint|State- Hint|IconPixmapHint| IconWindowHint|IconPosi- tionHint| IconMaskHint|Window- GroupHint) typedef struct { long flags; Bool input; int initial_state; Pixmap icon_pixmap; Window icon_window; int icon_x, icon_y; Pixmap icon_mask; XID window_group; } XWMHints; The input member is used to communicate to the window manager the input focus model used by the application. Applications that expect input but never explicitly set focus to any of their subwindows (that is, use the push model of focus management), such as X Version 10 style applications that use real-estate driven focus, should set this member to True. Similarly, applications that set input focus to their subwindows only when it is given to their top-level window by a window manager should also set this member to True. Applications that manage their own input focus by explicitly setting focus to one of their subwindows whenever they want keyboard input (that is, use the pull model of focus management) should set this member to False. Applications that never expect any keyboard input also should set this member to False. Pull model window managers should make it possible for push model applications to get input by setting input focus to the top-level windows of applications whose input member is True. Push model window managers should make sure that pull model applications do not break them by resetting input focus to PointerRoot when it is appropriate (for example, whenever an application whose input member is False sets input focus to one of its subwindows). The definitions for the initial_state flag are: #define WithdrawnState 0 #define NormalState 1 #define IconicState 3 The icon_mask specifies which pixels of the icon_pixmap should be used as the icon. This allows for nonrectangular icons. Both icon_pixmap and icon_mask must be bitmaps. The icon_window lets an application provide a window for use as an icon for window managers that support such use. The window_group lets you specify that this window belongs to a group of other windows. For example, if a single application manipulates multiple top-level windows, this allows you to provide enough information that a window manager can iconify all of the windows rather than just the one window. The UrgencyHint flag, if set in the flags field, indicates that the client deems the window contents to be urgent, requiring the timely response of the user. The window manager will make some effort to draw the user's attention to this window while this flag is set. The client must provide some means by which the user can cause the urgency flag to be cleared (either mitigating the condition that made the window urgent or merely shutting off the alarm) or the window to be withdrawn. DIAGNOSTICS
BadAlloc The server failed to allocate the requested resource or server memory. BadWindow A value for a Window argument does not name a defined Window. SEE ALSO
XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSizeHints(3X11), XFree(3X11), XSetCommand(3X11), XSetTransientForHint(3X11), XSet- TextProperty(3X11), XSetWMClientMachine(3X11), XSetWMColormapWindows(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWMProtocols(3X11), XStringListToTextProperty(3X11) Xlib - C Language X Interface X Version 11 Release 6.6 XAllocWMHints(3X11)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy