Is /data ia separata file system? Then you can quickly query it with a statfs() e.g. df /data. (Maybe you need some options like df -Pk /data.)
But if you need to break it down then you must use du.
Here is a command that I often use for cleanup:
I have used "$@" so it will take arguments when it is placed in a function or in a script. (Without arguments du defaults to .)
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
After my previous thread, I think I found out what causes the long delays.
I run this program on several Linux computers, and the sometimes (after the file with the arrays becomes big) the fwrite takes between 100 ms to 900 ms.
This is very bad for me, as I want a timer to halt each 30 ms.... ... (5 Replies)
Hello,
I have a C program that takes anywhere from 5 to 100 arguments and I'd like to run it from a script that makes sure it doesnt take too long to execute. If the C program takes more than 5 seconds to execute, i would like the shell script to kill it and return a short message to the user. ... (3 Replies)
Hello,
like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module.
/Best Regards Olle
---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ----------
For... (0 Replies)
Dear experts
I have a 200MG text file in this format:
text \tab number
I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways?
I dont want to split the file since this one is already splitted.
I use this command: sort -fd file >... (12 Replies)
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Hi,
I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long?
ssh -i ~/.ssh/ssl_key useraccount@computer1
Thank you.
- j (1 Reply)
Hi,
Below is my find command
find /opt/app/websphere -name myfolder -perm -600 | wc -l
At time it even takes 20 mins to complete.
my OS is : SunOS mypc 5.10 Generic_150400-09 sun4v sparc SUNW,T5440 (10 Replies)
Hi,
I am trying to search for a Directory called "mont" under a directory path "/opt/app/var/dumps"
Although "mont" is in the very parent directory called "dumps" i.e "/opt/app/var/dumps/mont" and it can never be inside any Sub-Directory of "dumps"; my below find command which also checks... (5 Replies)
Hi,
I have a lengthy script which i have trimmed down for a test case as below.
more run.sh
#!/bin/bash
paths="allpath.txt"
while IFS= read -r loc
do
echo "Working on $loc"
startdir=$loc
find "$startdir" -type f \( ! -name "*.log*" ! -name "*.class*" \) -print |
while read file
do... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT OSF1
packf
packf(1) General Commands Manual packf(1)NAME
packf - compress a folder into a single file (only available within the message handling system, mh)
SYNOPSIS
packf [+folder] [msgs] [-file name] [-help]
OPTIONS
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,
packf attempts to place the messages in a file called msgbox in the current working directory. If this file does not exist, packf asks
whether you want to create it. 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
DESCRIPTION
Each message in a folder is normally stored as a separate file. The packf 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 packf, you can separate them into individual messages using the burst command. See
burst(1).
PROFILE COMPONENTS
Path: To determine the user's Mail directory
Msg-Protect: To set protections when creating a new file
EXAMPLES
The first example shows all the messages in the folder +lrp being packed into a file called planning: % packf +lrp -file planning The next
example shows how packf prompts you if you do not specify a -file option. A file called msgbox is created by packf in your home directory,
and messages 3 to 5 are packed into it: % packf +lrp 3-5 Create file "/machine/disk/username/msgbox"? y
FILES
The user profile.
SEE ALSO burst(1)packf(1)