Sponsored Content
Full Discussion: to compute diskspace
Top Forums Shell Programming and Scripting to compute diskspace Post 302176751 by kenshinhimura on Wednesday 19th of March 2008 04:55:43 AM
Old 03-19-2008
to compute diskspace

Guys, have any idea for the script like this? also to compute w/ decimal.
thanks

a=10
b=20
c=30
d=40

if a < b then ( a -b)*1024 = free space
b + (c -d) = total space

if a > b then (b / d)*1024 = cpu
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

diskspace usage info

Anybody can help me? I need to know a specified folder diskspace usage, that's how much bytes that folder and its files/folders below spend on my storage. Thanks (2 Replies)
Discussion started by: nusajunus
2 Replies

2. UNIX for Dummies Questions & Answers

Diskspace

Hi there, pls help me, i have a problem, how i can find out the disk amount of each harddisk per command (not the on label on the Harddisk) i need it on HP UX and Sun. can anybody helb me???? pls thanks Scotty (1 Reply)
Discussion started by: scotty
1 Replies

3. Shell Programming and Scripting

ASM Diskspace

Hi I want to check Oracle ASM disk status through a PERL script. Script flow would be like this ... 1. Its taking diskgroup name in the command line... 2. Connect to Oracle database 3. If connection error send a critical message. Plz replyyyyyyy...... (1 Reply)
Discussion started by: Harikrishna
1 Replies

4. Linux

how to get the correct reading of diskspace

What has happened. I beleive the diskpace is not showing the correct reading. Is there another command to use to get the diskspace without using du -h? Is there another command linux uses. The reason i am assuing this i cleared the log of a process that started using nohup for... (5 Replies)
Discussion started by: jonathan184
5 Replies

5. Solaris

Solaris not freeign up diskspace

Hi, one of our drive was 100 utilized so I delete some files to free up some diskspace. However, when i check the diskspace, its still saying this drive is 100 % utilized. any suggestions? btw, i'm using df -h to check the diskspace (2 Replies)
Discussion started by: mrx1350
2 Replies

6. Solaris

graphical diskspace analyzer

Hi all, recently I took over the admin task for a solaris 5.10 machine. Being a little bit familiar with debian systems Solaris is up to now a complete mystery to me. The first thing I would like to have is a graphical diskspace analyzer. I mean something like BaoBab under gnome. I there a... (2 Replies)
Discussion started by: sly_dunbar
2 Replies

7. Shell Programming and Scripting

[ask]elimination with diskspace

dear all, i want elimination file with disk space for example: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 62G 19G 41G 31% / /dev/sda1 99M 13M 82M 13% /boot tmpfs 1014M 0... (2 Replies)
Discussion started by: zvtral
2 Replies

8. Shell Programming and Scripting

DiskSpace Error

Hi, While am preparing the script for diskspace for different partitions different threshhold limit. am getting below error: ./test.sh: syntax error at line 5: `space=$' unexpected Script ==== #!/bin/sh df -h |grep -v '/oradata2'|grep -v '/orabkp' |grep -v '/oradata5' | awk '{ print $5... (7 Replies)
Discussion started by: Pavan83
7 Replies

9. Red Hat

Check free diskspace

Hi all, I would like to know what was the free disk space available in my system for last two days back. I know how to check free disk space by command below. df -h But i want to know the same outcome for last two days back. Please help me. Reg, Mastan (5 Replies)
Discussion started by: mastansaheb
5 Replies

10. UNIX for Dummies Questions & Answers

Allocate diskspace AT&T SV R4

# Hello -all, I have a problem with the SV R4 install. During the floppy2 procedure I get the message that I allocated less than 35 Mb for UNIX. It's a clean install, no other OS. Just a clean PC with a 40Gb disk. I get the # prompt telling me to restart the installation to allocate more Mb's..... (2 Replies)
Discussion started by: raylier
2 Replies
MemInfo(3)						User Contributed Perl Documentation						MemInfo(3)

Sys::MemInfo - Memory informations

SYNOPSIS
use Sys::MemInfo qw(totalmem freemem totalswap); print "total memory: ".(&totalmem / 1024)." "; print "free memory: ".(&freemem / 1024)." "; print "total swap: ".(&totalswap / 1024)." "; print "free swap: ".(Sys::MemInfo::get("freeswap") / 1024)." "; DESCRIPTION
Sys::MemInfo return the total amount of free and used physical memory in bytes in totalmem and freemem variables. Total amount of free and user swap memory are alse returned in totalswap and freeswap variables. This module has been tested on Linux 2.6.10, UnixWare 7.1.2, AIX5, OpenBSD 3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64 5.1, Irix 6.5, Mac OS X 10.2 darwin and Windows XP. It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista. METHODS
availkeys Return list of all accessor keys (freemem, totalmem, etc.) This is useful for dumping out all known information from the object by calling get() on all of the returned keys. freemem Returns free physical memory in bytes. freeswap Returns free swap space in bytes. get Returns the value of the passed key. totalmem Returns total physical memory size in bytes. totalswap Returns total swap space in bytes. AUTHOR
Sylvain Cresto <scresto@gmail.com> Thanks to Laurent Dufour and Wilson Snyder. BUGS
Please send bug-reports to scresto@gmail.com LICENCE
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA COPYRIGHT
Copyright (C) 2005, 2006 - Sylvain Cresto perl v5.16.3 2006-11-09 MemInfo(3)
All times are GMT -4. The time now is 11:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy