07-10-2009
calculation:
there is a command: bc
but here are some clues for you to work on:
1:Search the forum, there are plenty of examples!
2: you can do this with the shell:
let DIFF=$WANTED-$GOT
sum=`expr $1 + $2`
---------- Post updated at 20:08 ---------- Previous update was at 20:01 ----------
Leave aside the formatting for now and conentrate on your calculation work!
You will need as many new variable as totals you want to display so if only the total of "InUse" and "FREE", that would be 2: TOTINUSE and TOTFREE
Need to leave... Hope someone else will follow you soon
All the best
---------- Post updated 07-10-09 at 17:05 ---------- Previous update was 07-09-09 at 20:08 ----------
What are the news today? ( Script progressed?)
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
How to find out what is the maximum memory allocated to TOMCAT server in SunOS 5.8?
The Tomcat server crashes down during peak times....
Regards (1 Reply)
Discussion started by: baanprog
1 Replies
2. Solaris
Hi,
I have a server that is getting the following alarm a couple times a day:
Mar 25 10:56:54 hostname xntpd: too many recvbufs allocated (30)
Mar 25 10:56:54 hostname xntpd: too many recvbufs allocated (30)
I know this is some sort of NTP related issue but I need to gauge the severity of... (0 Replies)
Discussion started by: BrewDudeBob
0 Replies
3. Solaris
i am working with solaris 9 and my disk usages are
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2148263 1902721 202577 91% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 ... (3 Replies)
Discussion started by: smartgupta
3 Replies
4. Solaris
Hey guys,
I am somewhat new to Solaris - and very new when it comes to mounts.
My problem is that when I installed Solaris, I allocated way too little diskspace to my / mount (it first became obvious now, however, because of new needs).
bash-3.00# df -h
Filesystem size ... (25 Replies)
Discussion started by: brightstorm
25 Replies
5. Programming
I have a pointer to a structure containing an integer pointer:
struct members {
int id;
int *neigh;
};
The number of members N and its neighbors M change as the code runs, so I allocate the memory dynamically:
members *grid = malloc(sizeof(members)*N);
for(i=0;i<N;i++)... (2 Replies)
Discussion started by: brinch
2 Replies
6. Programming
Actually for a process to run it needs text, stack , heap and data segments. All these find a place in the physical memory.
Out of these 4 only heap does exist after the termination of the process that created it. I want to know the exact reason why this happens. Also why the other process need to... (20 Replies)
Discussion started by: karthiktceit
20 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I need to find the total allocated disk space for the home directory.
How can i find that in unix?(in GB).
Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies
8. Programming
I want to find the size of the total memory allocated on the heap for the following statement:
int* a = new int;How can I use the sizeof operator for this?
I used:
printf("\t===> %d\n",sizeof(*a));
Is this statement correct?
I have asked the question because when I checked the memory of... (13 Replies)
Discussion started by: rupeshkp728
13 Replies
9. Shell Programming and Scripting
Hi ,
I Would like to know the space allocated by adding up all the allocated space to group of filesystems ..
example ,
df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu 14.04 in a server with 32GB ram.
Due to receiving "high load" errors during ssh connection, I took a look at what's happening from command line. I detected that 20GB of total memory was allocated to a program.
Below you can see some initial part of installation... (4 Replies)
Discussion started by: baris35
4 Replies
LEARN ABOUT LINUX
virtual-filesystems
virtual-filesystems(7) Miscellaneous Information Manual virtual-filesystems(7)
NAME
virtual-filesystems - event signalling that virtual filesystems have been mounted
SYNOPSIS
virtual-filesystems [ENV]...
DESCRIPTION
The virtual-filesystems event is generated by the mountall(8) daemon after it has mounted all virtual filesystems listed in fstab(5).
mountall(8) emits this event as an informational signal, services and tasks started or stopped by this event will do so in parallel with
other activity.
This event is typically used by services that must be started in order to mount other filesystems. When this event occurs, common filesys-
tems such as /usr may not be mounted. For most normal services the filesystem(7) event is sufficient.
EXAMPLE
A service that wishes to be running once virtual filesystems are mounted might use:
start on virtual-filesystems
SEE ALSO
mounting(7) mounted(7) local-filesystems(7) remote-filesystems(7) all-swaps(7) filesystem(7)
mountall 2009-12-21 virtual-filesystems(7)