01-19-2006
I think you can use the output of the following commands
echo "q" | top 35 1
ps -ef
who
Last edited by mahendramahendr; 01-19-2006 at 10:51 AM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Could someone point me in the correct direction or web link containing instructions for installing the System Performance Tool (aka STP) software on an IBM-AIX version 4.? machine. My client has the software (that came from their original server) on a 3" floppy. Thanks! (1 Reply)
Discussion started by: Pam
1 Replies
2. UNIX for Dummies Questions & Answers
I'm running Solaris 8 on a Sun ULTRA 5(SPARC II CPU, 270 MHz) with 64 Mb of RAM.
The machine is very, very slow even doing normal tasks such as reading mail....... I'm nearly afraid to ask it to do some real work.......
On checking out the machine(which I only received last week from our IT... (1 Reply)
Discussion started by: Kanu77
1 Replies
3. Linux
Anyone know how to fetch the system performance information by the function except the system command? These information includes CPU load,memory usage,network load,disk capacity,etc. (5 Replies)
Discussion started by: Frank2004
5 Replies
4. Shell Programming and Scripting
Hi,
I need a script which runs in the solaris system and check the system performance eg .CPU usage, and send an alert when an thresold level is
reached.
kindly help me on this. (3 Replies)
Discussion started by: jayaramanit
3 Replies
5. Solaris
Hi All,
Can someone help me out knowing all commands for getting system performance on Solaris machines.
Thanks in advance,
Yagami Light. (5 Replies)
Discussion started by: Yagami
5 Replies
6. Solaris
I have received an order from upper level manager to "verify system information via Perform/predict'. They asks me to *predict* the system performance. How can I do it as a system admin without the help of application admins and DBAs?
Thanks! (6 Replies)
Discussion started by: aixlover
6 Replies
7. HP-UX
hi every body i want to check system performance i usually use glance,top,sar and swapinfo but i confused in something so i need explanation about memory issue
first i want check the memory usage i used glance i found this parameter so i need one shows me the differences between these... (2 Replies)
Discussion started by: maxim42
2 Replies
8. Solaris
Hi
I need to know the system performance :
# echo "::memstat" | mdb -k
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 358022 2797 9%
ZFS File Data 2427072 18961 59%
Anon 1096938 8569 27%
Exec and libs 12020 93 0%
Page cache 73859 577 2%
Free... (4 Replies)
Discussion started by: dimitris
4 Replies
ECHO(3) 1 ECHO(3)
echo - Output one or more strings
SYNOPSIS
void echo (string $arg1, [string $...])
DESCRIPTION
Outputs all parameters.
echo is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo (unlike some other
language constructs) does not behave like a function, so it cannot always be used in the context of a function. Additionally, if you want
to pass more than one parameter to echo, the parameters must not be enclosed within parentheses.
echo also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. Prior to PHP 5.4.0, this short syn-
tax only works with the short_open_tag configuration setting enabled.
I have <?=$foo?> foo.
PARAMETERS
o $arg1
- The parameter to output.
o $...
-
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
echo examples
<?php
echo "Hello World";
echo "This spans
multiple lines. The newlines will be
output as well";
echo "This spans
multiple lines. The newlines will be
output as well.";
echo "Escaping characters is done "Like this".";
// You can use variables inside of an echo statement
$foo = "foobar";
$bar = "barbaz";
echo "foo is $foo"; // foo is foobar
// You can also use arrays
$baz = array("value" => "foo");
echo "this is {$baz['value']} !"; // this is foo !
// Using single quotes will print the variable name, not the value
echo 'foo is $foo'; // foo is $foo
// If you are not using any other characters, you can just echo variables
echo $foo; // foobar
echo $foo,$bar; // foobarbarbaz
// Some people prefer passing multiple parameters to echo over concatenation.
echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10);
echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "
";
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
// Because echo does not behave like a function, the following code is invalid.
($some_var) ? echo 'true' : echo 'false';
// However, the following examples will work:
($some_var) ? print 'true' : print 'false'; // print is also a construct, but
// it behaves like a function, so
// it may be used in this context.
echo $some_var ? 'true': 'false'; // changing the statement around
?>
NOTES
Note
Because this is a language construct and not a function, it cannot be called using variable functions.
SEE ALSO
print(3), printf(3), flush(3), Heredoc syntax.
PHP Documentation Group ECHO(3)