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
packf(1mh)																packf(1mh)

Name
       packf - compress a folder into a single file

Syntax
       packf [ +folder ] [ msgs ] [ -file name ] [ -help ]

Description
       Each  message in a folder is normally stored as a separate file.  The command takes all messages from the current folder and copies them to
       a single specified file.  Each message in the file is separated by four <CTRL/A>s and a newline.

       You can specify a folder other than the current folder by using the +folder argument.  If you do not want all the messages in a	folder	to
       be packed into one file, you can specify a number of messages or a range of messages with message numbers.

       The first message packed will become the current message.  If you specify a +folder argument, that folder will become the current folder.

       When messages have been packed into a file using you can separate them into individual messages using the command.  See

Options
       -file name
		 Specifies  the  file  in which you want the message(s) to be stored.  If you specify an existing file then the specified messages
		 will be appended to the end of that file.  Otherwise, a new file will be created and the messages placed in it.  If  you  do  not
		 specify  a  filename,	attempts  to  place the messages in a file called in the current working directory.  If this file does not
		 exist, asks whether you want to create it.

       -help	 Prints a list of the valid options to this command.

       The default settings for this command are:

	      +folder defaults to the current folder
	      msgs defaults to all
	      -file ./msgbox

Examples
       The first example shows all the messages in the folder being packed into a file called
       % packf +lrp -file planning

       The next example shows how prompts you if you do not specify a -file option.  A file called is created by in your home directory, and  mes-
       sages 3 to 5 are packed into it:
       % packf +lrp 3-5
       Create file "/machine/disk/username/msgbox"? y

Profile Components
       Path:	      To determine the user's Mail directory
       Msg-Protect:   To set protections when creating a new file

Files
       $HOME/.mh_profile   The user profile.

See Also
       burst(1mh)

																	packf(1mh)
All times are GMT -4. The time now is 09:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy