Sponsored Content
Top Forums Shell Programming and Scripting Warning in Top 10 cpu consuming processes Post 302444209 by pinga123 on Wednesday 11th of August 2010 07:31:59 AM
Old 08-11-2010
Thanks you all for your reply .But i found it little strange as For giving an option to a command i normally use a hyphen "-" Why this is not the case with ps?
Is this a kind of bug?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number. top -n 20 i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

3. AIX

Command to find TOP 5 Memory consuming process

HI All, Can anyone send me a command to find TOP 5 Memory consuming process. It would be lelpful if I get output something like below processname - pid - memory(in MB) - command I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)
Discussion started by: bce_groups
4 Replies

4. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

5. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

6. Shell Programming and Scripting

Print 10 most CPU-intensive processes (wo/ top)

ps -eo pid,comm,%cpu lists all processes (in increasing PID number). How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise. I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies

7. Shell Programming and Scripting

Discrepancy in finding the top memory consuming processes

When I run 'top' command,I see the following Memory: 32G real, 12G free, 96G swap free Though it shows as 12G free,I am not able to account for processes that consume the rest 20G. In my understanding some process should be consuming atleast 15-16 G but I am not able to find them. Is... (1 Reply)
Discussion started by: prasperl
1 Replies

8. Shell Programming and Scripting

Unix shell script to query linux top consuming processes

Hi All, O/S: Linux 86x64 Red Hat I have a sql script that queries top consuming processes of Linux using TOP commnd. Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script. Could anyone please let me know how to achieve this. ... (2 Replies)
Discussion started by: a1_win
2 Replies

9. UNIX for Dummies Questions & Answers

Finding the most memory consuming processes in Linux

Platform: Oracle Linux 6.4 To find the most memory consuming processes, I tried the following 2 methods 1. Method1 # ps aux | head -1 ; ps aux | sort -nk +4 | tail -7 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 95 0.0 0.0 0 0 ? ... (2 Replies)
Discussion started by: kraljic
2 Replies

10. UNIX for Beginners Questions & Answers

Top 5 cpu and Mem consuming process and files and suggestion for health check

I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment? Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server? I searched on site before posting, but... (2 Replies)
Discussion started by: Varja
2 Replies
xcb_xkb_get_geometry(3) 					   XCB Requests 					   xcb_xkb_get_geometry(3)

NAME
xcb_xkb_get_geometry - SYNOPSIS
#include <xcb/xkb.h> Request function xcb_xkb_get_geometry_cookie_t xcb_xkb_get_geometry(xcb_connection_t *conn, xcb_xkb_device_spec_t deviceSpec, xcb_atom_t name); Reply datastructure typedef struct xcb_xkb_get_geometry_reply_t { uint8_t response_type; uint8_t deviceID; uint16_t sequence; uint32_t length; xcb_atom_t name; uint8_t found; uint8_t pad0; uint16_t widthMM; uint16_t heightMM; uint16_t nProperties; uint16_t nColors; uint16_t nShapes; uint16_t nSections; uint16_t nDoodads; uint16_t nKeyAliases; uint8_t baseColorNdx; uint8_t labelColorNdx; } xcb_xkb_get_geometry_reply_t; Reply function xcb_xkb_get_geometry_reply_t *xcb_xkb_get_geometry_reply(xcb_connection_t *conn, xcb_xkb_get_geometry_cookie_t cookie, xcb_generic_error_t **e); Reply accessors xcb_xkb_counted_string_16_t *xcb_xkb_get_geometry_label_font (const xcb_xkb_get_geometry_request_t *reply) int xcb_xkb_get_geometry_properties_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_property_iterator_t xcb_xkb_get_geometry_properties_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_colors_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_counted_string_16_iterator_t xcb_xkb_get_geometry_colors_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_shapes_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_shape_iterator_t xcb_xkb_get_geometry_shapes_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_sections_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_section_iterator_t xcb_xkb_get_geometry_sections_iterator(const xcb_xkb_get_geometry_reply_t *reply); int xcb_xkb_get_geometry_doodads_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_doodad_iterator_t xcb_xkb_get_geometry_doodads_iterator(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_key_alias_t *xcb_xkb_get_geometry_key_aliases(const xcb_xkb_get_geometry_request_t *reply); int xcb_xkb_get_geometry_key_aliases_length(const xcb_xkb_get_geometry_reply_t *reply); xcb_xkb_key_alias_iterator_t xcb_xkb_get_geometry_key_aliases_iterator(const xcb_xkb_get_geometry_reply_t *reply); REQUEST ARGUMENTS
conn The XCB connection to X11. deviceSpec TODO: NOT YET DOCUMENTED. name TODO: NOT YET DOCUMENTED. REPLY FIELDS
response_type The type of this reply, in this case XCB_XKB_GET_GEOMETRY. This field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). deviceID TODO: NOT YET DOCUMENTED. name TODO: NOT YET DOCUMENTED. found TODO: NOT YET DOCUMENTED. widthMM TODO: NOT YET DOCUMENTED. heightMM TODO: NOT YET DOCUMENTED. nProperties TODO: NOT YET DOCUMENTED. nColors TODO: NOT YET DOCUMENTED. nShapes TODO: NOT YET DOCUMENTED. nSections TODO: NOT YET DOCUMENTED. nDoodads TODO: NOT YET DOCUMENTED. nKeyAliases TODO: NOT YET DOCUMENTED. baseColorNdx TODO: NOT YET DOCUMENTED. labelColorNdx TODO: NOT YET DOCUMENTED. DESCRIPTION
RETURN VALUE
Returns an xcb_xkb_get_geometry_cookie_t. Errors have to be handled when calling the reply function xcb_xkb_get_geometry_reply. If you want to handle errors in the event loop instead, use xcb_xkb_get_geometry_unchecked. See xcb-requests(3) for details. ERRORS
This request does never generate any errors. SEE ALSO
AUTHOR
Generated from xkb.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. XCB
2014-06-10 xcb_xkb_get_geometry(3)
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy