Sponsored Content
Full Discussion: Top command
Top Forums Shell Programming and Scripting Top command Post 302112200 by Sowser on Monday 26th of March 2007 03:35:05 PM
Old 03-26-2007
try this.

I think this will work for you.

Use the echo command. here is an example.

echo | top -n 1

But keep in mind, the first iteration, similar to prstat and iostat, is usually junk data and not quite information until you hit the second iteration. But the above will do what you want.

Just as an fyi, it is also helpful in scripting, especially commands that wait for input like format and top and any of the xxstat commands.

echo | format

-S
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

command --> top

I understand the numbers displayed in variable "load average". My question: what are the correct/ideal numbers? Sometimes, I got less than 1. Others, above 6. Also, what HW/SW should I tune in order to have the ideal numbers? Thank you ... (1 Reply)
Discussion started by: dgromerog
1 Replies

2. UNIX for Dummies Questions & Answers

top command

hi guys, i am having a dual cpu xeon machine. i came to know that i can view the performance by giving top command. but top command shows only the usage of one cpu in percentage while the process are using more than 100% usage in the list . can i know separately the usage of cpus. can you... (5 Replies)
Discussion started by: bijuhpd
5 Replies

3. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

4. UNIX for Dummies Questions & Answers

top command

Hey, Using one single line of command i am trying to show the CPU usage for 4 processors and then filter it out and write it to a text file. Everything seams ok except that i am not able to switch from having the top command show me all CPU processes seperate opposed to showing me the average of... (0 Replies)
Discussion started by: Georgesaa
0 Replies

5. Solaris

top command

Hi, How to install software package top in solaris, (4 Replies)
Discussion started by: manoj.solaris
4 Replies

6. Shell Programming and Scripting

Top command

Hi , can some one please assist me in using top command im facing following after using top: # top -hv UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected # top -p UX:sh (top): ERROR: top: syntax error at line 1: `(' unexpected thanks in advance (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies

7. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

8. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

9. Shell Programming and Scripting

Help with top command

Currently when i run top command i get the following columns . CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND In this how to remove '%WCPU' column ? Thanks very much in advance . (6 Replies)
Discussion started by: kpravinraj
6 Replies

10. Shell Programming and Scripting

Top command

Hi All, i am using the below command and once get the output and i need to keep the first batch only.in this case how to do this one. please help me on thistop -b -n 5 >top.txt Thanks, (3 Replies)
Discussion started by: bmk
3 Replies
LOCALE_GET_DISPLAY_LANGUAGE(3)						 1					    LOCALE_GET_DISPLAY_LANGUAGE(3)

Locale::getDisplayLanguage - Returns an appropriately localized display name for language of the inputlocale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getDisplayLanguage (string $locale, [string $in_locale]) DESCRIPTION
Procedural style string locale_get_display_language (string $locale, [string $in_locale]) Returns an appropriately localized display name for language of the input locale. If is NULL then the default locale is used. PARAMETERS
o $locale - The locale to return a display language for o $in_locale - Optional format locale to use to display the language name RETURN VALUES
display name of the language for the $locale in the format appropriate for $in_locale. EXAMPLES
Example #1 locale_get_display_language(3) example <?php echo locale_get_display_language('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_language('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_language('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Slovenian; slovxc3xa8ne; Slowenisch SEE ALSO
locale_get_display_name(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3). PHP Documentation Group LOCALE_GET_DISPLAY_LANGUAGE(3)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy