You are missing the first set of statistics reported by most of the *stat commands is an average since last boot.
Instead of "vmstat 1 1", you should run "vmstat 1 2" and use the last line values.
The facts they are about different periods of time and reported with different units (KB vs 4 or 8 KB pages depending on the architecture) is something worth considering
ok....
I've been reading here and also doing a lot of research
As jlliagre says,
if I use the command:
I get the following output:
now "85" is based on the period "since the device was booted"
so "99" is what I want
So how to I only grab the second value?
I tried a test like this:
But that only hung at the prompt until the process ran, and gave me no data.
Thanks for your continuing help.
Marc
---------- Post updated at 02:52 PM ---------- Previous update was at 02:50 PM ----------
Quote:
Originally Posted by MadeInGermany
1. get a new top program that does not get stuck
2. if it still goes stuck, call it through a timeout wrapper
This one will kill top after 1 hour.
Actually, It continued to get stuck so I put a command after the top to determine if top was running and kill it.
That failed to resolve the issue to the sys admin's satisfaction.
---------- Post updated at 02:52 PM ---------- Previous update was at 02:52 PM ----------
Quote:
Originally Posted by MadeInGermany
1. get a new top program that does not get stuck
2. if it still goes stuck, call it through a timeout wrapper
This one will kill top after 1 hour.
Actually, It continued to get stuck so I put a command after the top to determine if top was running and kill it.
That failed to resolve the issue to the sys admin's satisfaction.
---------- Post updated at 03:53 PM ---------- Previous update was at 02:52 PM ----------
additionally...
When I run the following from the command line:
I get:
Note, the blank line is part of the output
but when I create a script: "test.sh" containing:
and I run that, I get:
I then have to type "exit" to allow the script to complete execution as follows:
So the more I am trying the more I am both learning and digging my wheels in deeper.
Hi All,
I want to check memory details and other hardware details of my SCO machine. can someone please share the command to do that?
Thanks,
Am (2 Replies)
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Hi,
I want to print machine details in windows.
In UNIX it is easily available by the command
uname -X
Is there any command like this in windows to get those details..
can anybody help me on this..
Thanks in advance.
~arup (1 Reply)
I have scheduled couple of shell scripts to run using 'at' command.
The o/p of at -l is:
$ at -l
1320904800.a Thu Nov 10 01:00:00 2011
1320894000.a Wed Nov 9 22:00:00 2011
1320876000.a Wed Nov 9 17:00:00 2011
$ uname -a
SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Hi,
Could you please help me with the below issue..
I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1).
I'm trying to connect to server from the client machine using ftp service.
I have installed vsftpd daemon on both the machines.
I'm getting... (4 Replies)
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)