I have to test the directory name which is obtained from
for dir in `ls -l|grep $9 '
i need to check whether it is directory (
if yes, I have to check the first 3 character fo the directory
how can I do that? Please help me
thanks (3 Replies)
I need to parse the following out put and determine if the USB is a DISK and whether or not it's External.
If an HBA line contains "USB" then does the next line contain
"DISK" and "External".
0:0,31,0: HBA : (aacraid,1) AAC SCSI
0,0,0: DISK : Adaptec ASR4800SAS Volu0001
... (6 Replies)
Hi,
From the above output of df command I need to parse only 43G (available space) and display it.
root@localhost:> df -h /vol1/joy
Filesystem Size Used Avail Capacity Mounted on
/vol1/joy 180G 137G 43G 76% ... (3 Replies)
I'm trying to gather information on the interfaces on a large number of servers.
If I run ifconfig I will get: eth0 Link encap:Ethernet HWaddr 00:50:56:A2:27:C1
inet addr:10.145.xxx.xxx Bcast:10.152.45.255 Mask:255.255.254.0
-----
eth1 Link... (2 Replies)
Hi fellows,
I need to define a notification for SSL certificate expiration.
My Command output is below: (this is the "Expiration Date")
Tue Mar 15 09:30:01 2012
So, at 15th Feb (1 month before the expiration), a notification has to be triggered by a script or sth else. How can i set an... (5 Replies)
Guys can you help me fix this parse error.
Here's my script.
#!/bin/bash
# Set up limit below
NOTIFY="6.0% us 6.1% us 6.2% us 6.3% us 6.5% us 6.6% us 6.7% us 6.8% us 6.9% us 7.0% us"
# CPU Usage every minute
TOP="$(top -b -n2 -d 00.20 |grep Cpu|tail -1 | awk -F ":" '{ print $2 }' | cut... (3 Replies)
i have a log file that contains something similar to this:
one two three four five six seven eight
nine ten eleven twelve thirteen fourteen
one two three four five six seven eight
nine ten eleven twelve thirteen fourteen
one two three four five six seven eight
nine ten eleven twelve... (3 Replies)
Hi ,
i am trying to set up an alert, when CPU usage (0.2%us in below output) is more than 40%
top | head | grep '^Cpu'
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.1%id, 0.6%wa, 0.0%hi, 0.0%si, 0.0%st
using CUT, i pulled the value 0.2 and assigned to CPU (variable)
CPU=$(expr `top | head -10... (5 Replies)
Anybody that's ever used nsupdate knows that it's error management is not very good.
I have a wrapper script that when it's got all the information it needs launches the nsupdate command.
This is my attempt at parsing the output to help support users quickly know if the command succeded or... (7 Replies)
Discussion started by: maverick72
7 Replies
LEARN ABOUT REDHAT
x11perfcomp
X11PERFCOMP(1) General Commands Manual X11PERFCOMP(1)NAME
x11perfcomp - X11 server performance comparison program
SYNTAX
x11perfcomp [ -r | -ro ] [ -l label_file ] files
DESCRIPTION
The x11perfcomp program merges the output of several x11perf(1) runs into a nice tabular format. It takes the results in each file, fills
in any missing test results if necessary, and for each test shows the objects/second rate of each server. If invoked with the -r or -ro
options, it shows the relative performance of each server to the first server.
Normally, x11perfcomp uses the first file specified to determine which specific tests it should report on. Some (non-DEC :) servers may
fail to perform all tests. In this case, x11perfcomp automatically substitutes in a rate of 0.0 objects/second. Since the first file
determines which tests to report on, this file must contain a superset of the tests reported in the other files, else x11perfcomp will
fail.
You can provide an explicit list of tests to report on by using the -l switch to specify a file of labels. You can create a label file by
using the -label option in x11perf.
OPTIONS
x11perfcomp accepts the options listed below:
-r Specifies that the output should also include relative server performance.
-ro Specifies that the output should include only relative server performance.
-l label_file Specifies a label file to use.
X DEFAULTS
There are no X defaults used by this program.
SEE ALSO X(7x), x11perf(1)AUTHORS
Mark Moraes wrote the original scripts to compare servers.
Joel McCormack just munged them together a bit.
X Version 11 Release 6.6 X11PERFCOMP(1)