Sponsored Content
Top Forums Shell Programming and Scripting How can I get the increased rate in MB? Post 302884661 by Mohannad on Tuesday 21st of January 2014 08:59:19 AM
Old 01-21-2014
How can I get the increased rate in MB?

Deal all,

I have a directory called [msc]
I want to know how many MBs are transferred to it every 2 hours.
How can I do this?

Any ideas?

I have a simple idea but I can't translate it into shell script, the idea is:
1- get the size of the folder now, using [du -sm]
2- then get the size of the folder after 2 hours, using the same command.
3- then by subtracting the second value from the first value, I will get the increased rate in MBs.

How can I translate this idea into shell script?


Thanks
 

3 More Discussions You Might Find Interesting

1. Red Hat

how to mount SAN volume with its increased size

Hi, We have 200GB SAN volume mounted on Redhat EL 5. which is working fine. As my SAN supports dynamic resizing of volumes, i unmounted the volume and resized the SAN Volume to 300 GB successfully. Then i mounted again but it shows 200GB only but data is intact. Now, my requirement is to let... (3 Replies)
Discussion started by: prvnrk
3 Replies

2. AIX

rmt0 allows get increased .. !

rmt0 allows get increased .. ! I have faced this issue in my AIX server, rmt0 allows get increased and it's filled /root till 100% There is no tape in tape drive why it's increased? Pls advice.. (1 Reply)
Discussion started by: Mr.AIX
1 Replies

3. Solaris

/ root is 100% and there is nothing increased it

Guys I have solaris 9 and / root is 100% and there is nothing increased the space every thing normal , I think the problem related to audit How can I stop or shutdown audit service and start it again ? Pls advice in the reason of this increasing and is it related to audit service ? . (5 Replies)
Discussion started by: Mr.AIX
5 Replies
mhpath(1)						      General Commands Manual							 mhpath(1)

NAME
mhpath - print full pathnames of MH messages and folders (only available within the message handling system, mh) SYNOPSIS
mhpath [+foldername] [msgs] [-help] OPTIONS
Prints a list of the valid options to this command. DESCRIPTION
Use the mhpath command to display the full pathname of the specified folder. If you do not specify a folder, mhpath displays the pathname of the current folder. If you specify a message with its message number, mhpath displays the pathname of the specified message. You can also specify a number of messages, or a range of messages. If the top of the range that you specify is greater than the last message in the folder, mhpath displays as much of the specified range as possible. Additionally mhpath can take a keyword or a sequence name. The following keywords are acceptable: The first message in the folder. The last message in the folder. The message after the last message in the folder. You cannot use new as part of a message range. The current message in the folder. The message before the current message. The message after the current message. All of the messages in the folder. PROFILE COMPONENTS
Path: To determine your Mail directory EXAMPLES
In the following example, mhpath displays message 3 in the folder +inbox: % mhpath +inbox 3 /r/phyl/Mail/inbox The following example dis- plays the pathname of messages 2 to 5 in the current folder: % mhpath 2-5 /r/phyl/Mail/inbox/2 /r/phyl/Mail/inbox/3 /r/phyl/Mail/inbox/4 /r/phyl/Mail/inbox/5 FILES
The user profile. SEE ALSO
folder(1) mhpath(1)
All times are GMT -4. The time now is 10:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy