05-26-2011
I've thought about releasing the code, I spent a lot of time developing it. I can't guarantee its bug free. Perhaps someone has time see if it works on their system.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi gurus,
I need to set up an array like this
set - A arr 'A', 'B'
The output of this array should be like this 'A','B'
Right now, I get the output like this 'A B'
Can anyone suggest me on how to achieve this.
thanks (3 Replies)
Discussion started by: ragha81
3 Replies
2. Shell Programming and Scripting
I'm trying to take the output of an environment that has multiple strings
ex.
# echo $SSH_CLIENT
192.168.1.1 57039 22
I need that IP... so I can set it to another environment.
Thank you (3 Replies)
Discussion started by: adelsin
3 Replies
3. Filesystems, Disks and Memory
Hi Guys,
I've been having some arguments with my colleagues about one thing. Always my thought was that as as far as disk performance is concern by looking at the output of the iostat command (AIX) you would be able to identify if you have a hot disk and then by moving some files out that disk... (3 Replies)
Discussion started by: arizah
3 Replies
4. Shell Programming and Scripting
Hi all,
I have a script which produces a nice table but I want to sort it on column 3.
This is the output line in the script:
# Output
{ FS = ":";
format = "%11s %6s %-16s\n";
prinft "\n"
printf ( format, "Size","Count","Who" ) }
for (i in... (21 Replies)
Discussion started by: Cowardly
21 Replies
5. Shell Programming and Scripting
Hey, guys, scripting newb here. I'm trying to get a list of all .dmg files in a folder and save the output into an array. My first attempt was
ARRAY= ( `ls $REIMAGEPATH | grep \.dmg$` )
However, I understand why that doesn't work now (at least I think I do).
But I don't know what the... (5 Replies)
Discussion started by: nextyoyoma
5 Replies
6. Shell Programming and Scripting
Hi,
How to store the values in array from output result,
EG:
I have the result like this,
ps, google, 1.txt, 1
sam, google, 2.txt, 2
These are the four values followed by comma in two sets. I need to store these values set by set. One set contains four values followed by comma.
... (2 Replies)
Discussion started by: KarthikPS
2 Replies
7. Shell Programming and Scripting
Hi
I'm trying to write a shell script which finds all the .zip files in a given directory then lists them on the screen and prompts the user to select one by entering a number e.g.
The available files are:
1. HaveANiceDay.zip
2. LinuxHelp.zip
3. Arrays.zip
Please enter the... (4 Replies)
Discussion started by: zX TheRipper Xz
4 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
Q1) I have the below code but when the email was sent out all lines are merged and coming out as a single line though my printf statement has newline "\n", How do i avoid that?
Q2) In my second IF statement when i introduced the backslash "\" for continuation of a line or command, i... (10 Replies)
Discussion started by: Ariean
10 Replies
9. Shell Programming and Scripting
Hello All,
Can you please help me with the below.
#!/bin/bash
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5 EXTRACT_DT:30-SEP-12 VER_NUM:1"
ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5... (14 Replies)
Discussion started by: Ariean
14 Replies
10. Shell Programming and Scripting
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT LINUX
procinfo
PROCINFO-NG(8) Linux System Manual PROCINFO-NG(8)
NAME
procinfo - display system statistics gathered from /proc
SYNOPSIS
procinfo [ -fdDSbrhv ] [ -nN ]
DESCRIPTION
procinfo gathers some system data from the /proc directory and prints it nicely formatted on the standard output device.
The meanings of the fields are as follows:
Memory:
See the man page for free(1)
Bootup:
The time the system was booted.
Load average:
The average number of jobs running, followed by the number of runnable processes and the total number of processes, followed by the
PID of the last process run. The pid of the last running process will probably always be procinfo's PID.
user: The amount of time spent running jobs in user space.
nice: The amount of time spent running niced jobs in user space.
system:
The amount of time spent running in kernel space. Note: the time spent servicing interrupts is not counted by the kernel (and noth-
ing that procinfo can do about it).
idle: The amount of time spent doing nothing.
uptime:
The time that the system has been up. The above four should more or less add up to this one.
page in:
The number of disk blocks paged into core from disk. 1 block is equal to 1 kiB.
page out:
The number of disk blocks paged out of core to disk. This includes regular disk-writes.
swap in:
The number of memory pages paged in from swap.
swap out:
The number of memory pages paged out to swap.
context:
The number of context switches, either since bootup or per interval.
Disk stats(hda, hdb, sda, sdb):
The number of reads and writes made to disks, whether CD-ROM, hard-drive, or USB. Shows all disks if they either are an hdX or sdX,
or if they have a non-zero read/write count.
Interrupts:
Number of interrupts serviced since boot, or per interval, listed per IRQ.
OPTIONS
-nN Pause N second between updates. This option implies -f. It may contain a decimal point. The default is 5 seconds. When run by root
with a pause of 0 seconds, the program will run at the highest possible priority level.
-d For memory, CPU times, paging, swapping, disk, context and interrupt stats, display values per second rather than totals. This
option implies -f.
-D Same as -d, except that memory stats are displayed as totals.
-S When running with -d or -D, always show values per second, even when running with -n N with N greater than one second.
-b Display numbers of bytes rather than number of I/O requests.
-r This option adds an extra line to the memory info showing 'real' free memory, just as free(1) does. The numbers produced assume that
Buffers and Cache are disposable.
-H Displays memory stats in 'Human' (base 1024) numbers (KiB, MiB, GiB), instead of implied KBytes.
-h Print a brief help message.
-v Print version info.
INTERACTIVE COMMANDS
When running procinfo fullscreen, you can change its behaviour by pressing d, D, S, r and b, which toggle the flags that correspond to
their same-named commandline-options. In addition you can press q which quits the program.
FILES
/proc The proc file system.
BUGS
All of these statistics are taken verbatim from the kernel, without any scaling. Any case where the kernel specifies that a particular
field means something different from how it is documented in this man-page, the kernel always wins.
Some features of the original procinfo were elided, as they were considered non-useful, especially as many of them don't change anymore,
and have better utilities for listing/displaying them.
SEE ALSO
free(1), uptime(1), w(1), init(8), proc(5).
AUTHOR
Adam Schrotenboer <adam@tabris.net>
v2.0 2007-05-05 PROCINFO-NG(8)