05-13-2013
I have read in articles that top command returns accurate command after executed few times. Hence we want to execute top command 10 times and then capture the data.
I dont want to send the 10 outputs over the network, and only send the last output of top.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
2. Shell Programming and Scripting
Hi,
I have a system under test, and I use a script that does a ps.
The output, is in the following format, it's basically the timestamp, followed by the rss and vsize.
09:03:57 68404 183656 68312 181944 69860 217360 67536 182564 69072 183172 69032 199276
09:04:27 68752 183292 70000 189020... (5 Replies)
Discussion started by: Bloke
5 Replies
3. IP Networking
Hi
I have a wireshark file saved (from my network) and I have to analyze the flows inside it.
The problem is that i have to analyze not the complete file (60.000 pkts!) but just a subset of it.
In other words i have to sample the wireshark.file.dump and for example from 60.000 pkts take... (2 Replies)
Discussion started by: Dedalus
2 Replies
4. Shell Programming and Scripting
Hi guys - I use this script below to search for files that are of todays date. It also informs if the file doesnt exist or is old.
I am trying to make the script inform of the errors in the "begining" of the output email. Such as all errors are grouped together.
I am using the following... (1 Reply)
Discussion started by: DallasT
1 Replies
5. Solaris
Solaris experts,
Am struggling, and wondering for the past more than one week that, how to calculate the total available and used memory/swap space.
Finally installed and used top & got some understanding, but while cross-checking, there are mismatches.
Main Memory
top o/p - 2GB... (7 Replies)
Discussion started by: thegeek
7 Replies
6. Shell Programming and Scripting
I am running a grep query for searching a pattern, and the output is quite huge. I want only the last 200 lines to be displayed, and I am not sure if tail will do the trick (can tail read from std in/out instead of files?).
Please help me out. (1 Reply)
Discussion started by: shell_newbie
1 Replies
7. Shell Programming and Scripting
I am filtering the value of Server status from a file and am storing it in a temp file which I compare later to exit with appropriate status. I am wondering if I can directly output the value of Server status as an array element and then compare the value of elements to get the right exit status
... (2 Replies)
Discussion started by: paslas
2 Replies
8. UNIX for Advanced & Expert Users
I have posted a thread in Unix for Dummies question......
https://www.unix.com/unix-dummies-questions-answers/223769-filter-top-bc-n10-output.html
Can anybody help me out with this please?
Thanks
Avinash (3 Replies)
Discussion started by: avinthm
3 Replies
9. Shell Programming and Scripting
Hey,
I'm using some sensors that can be read by http.
If I run following command:
curl -v 'http://192.168.111.23:8080/sensor/52f5c63cc4221fbbedcb499908a0a823?version=1.0&interval=minute&unit=watt&callback=realtime'
I'm getting:
I would like to put this now in a sheet with only the... (9 Replies)
Discussion started by: brononius
9 Replies
10. Shell Programming and Scripting
Hello guys,
I'm writing a little script which sends me sms with my shell script via api of a sms provider.
problem is I can't filter my curl output for this site:
site url:... (1 Reply)
Discussion started by: genius90
1 Replies
pnmcut(1) General Commands Manual pnmcut(1)
NAME
pnmcut - cut a rectangle out of a portable anymap
SYNOPSIS
pnmcut [-left leftcol] [-right rightcol] [-top toprow] [-bottom bottomrow] [-width width] [-height height] [-pad] [-verbose] [ left top
width height ] [pnmfile]
All options may be abbreviated to the shortest unique prefix.
DESCRIPTION
Reads a PBM, PGM, or PPM image as input. Extracts the specified rectangle, and produces the same kind of image as output.
There are two ways to specify the rectangle to cut: arguments and options. Options are easier to remember and read, more expressive, and
allow you to use defaults. Arguments were the only way available before July 2000.
If you use both options and arguments, the two specifications get mixed in an unspecified way.
To use options, just code any mixture of the -left, -right, -top, -bottom, -width, and -height options. What you don't specify defaults.
It is an error to overspecify, i.e. to specify all three of -left, -right, and -width or -top, -bottom, and -height.
To use arguments, specify all four of the left, top, width, and height arguments. left and top have the same effect as specifying them as
the argument of a -left or -top option, respectively. width and height have the same effect as specifying them as the argument of a -width
or -height option, respectively, where they are positive. Where they are not positive, they have the same effect as specifying one less
than the value as the argument to a -right or -bottom option, respectively. (E.g. width = 0 makes the cut go all the way to the right
edge). Before July 2000, negative numbers were not allowed for width and height.
Input is from Standard Input if you don't specify the input file pnmfile.
Output is to Standard Output.
OPTIONS
-left The column number of the leftmost column to be in the output. If a nonnegative number, it refers to columns numbered from 0 at the
left, increasing to the right. If negative, it refers to columns numbered -1 at the right, decreasing to the left.
-right The column number of the rightmost column to be in the output, numbered the same as for -left.
-top The row number of the topmost row to be in the output. If a nonnegative number it refers to rows numbered from 0 at the top,
increasing downward. If negative, it refers to columns numbered -1 at the bottom, decreasing upward.
-bottom
The row number of the bottom-most row to be in the output, numbered the same as for -top.
-width The number of columns to be in the output. Must be positive.
-height
The number of rows to be in the output. Must be positive.
-pad If the rectangle you specify is not entirely within the input image, pnmcut fails unless you also specify -pad. In that case, it
pads the output with black up to the edges you specify. You can use this option if you need to have an image of certain dimensions
and have an image of arbitrary dimensions.
pnmpad can also fill an image out to a specified dimension, and gives you more explicit control over the padding.
-verbose
Print information about the processing to Standard Error.
SEE ALSO
pnmcrop(1), pnmpad(1), pnmcat(1), pgmslice(1), pnm(5)
AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
29 June 2000 pnmcut(1)