12-08-2011
Thanks Methyl
As i am a Newbee..It took lot of time to understand do while, but thanks a lot..once a gain..it worked..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
This is probably very easy but I would like to know a way to list all my files in all my directories that are readable and executable to everyone. I was told to use find or ls and I tried some stuff but couldnt get it to work. I understand that its dangerous to have files with these permissions for... (4 Replies)
Discussion started by: CSGUY
4 Replies
2. UNIX for Dummies Questions & Answers
hello all.
i would like to be able to find the names of all files on a remote machine using ssh.
i only want the names of files, not directories
so far i'm stuck at "du -a | sort -n"
also, is it possible to write them to a file on my machine? i know how to write it to a file on that... (2 Replies)
Discussion started by: user19190989
2 Replies
3. Shell Programming and Scripting
Hello all,
Here's the deal...I have one directory with many subdirs and files.
What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file.
A script for... (5 Replies)
Discussion started by: ejianu
5 Replies
4. Shell Programming and Scripting
i want to compare 2 files and generate below 3 files:
1. new lines
2. updated lines
3. deleted lines
are there any one liners for each one of them.
Note the method to find duplicates is based on field 1, values are separated by '|'
example:
test1 (older file)
1|XXX
2|YYY... (3 Replies)
Discussion started by: manishma71
3 Replies
5. UNIX for Dummies Questions & Answers
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Discussion started by: Aussiemick
8 Replies
6. Shell Programming and Scripting
Hi all...
Can somebody pls help me with this...
I have a directory (dir1) which has many subdirectories(vr001,vr002,vr003..) with each subdir containing similar text file(say ras.txt).
I have another directory(dir2) which has again got some subdir(vr001c,vr002c,vr003c..) with each subdir... (0 Replies)
Discussion started by: bramya07
0 Replies
7. Shell Programming and Scripting
i am having trouble creating a directory with last months date as the folder name.
what i am using is echo `date +%b%y`
which gives
Mar14 as the result but i want to get Feb14 as the result.:wall: (6 Replies)
Discussion started by: simkazw
6 Replies
8. Programming
Hello All,
I have got some assignment to complete till this Monday and problem statement is as follow :-
Problem :- Find duplicate files (especially .c and .cpp) from two project base directories with following requirement :-
1.Should be extendable to search in multiple base... (4 Replies)
Discussion started by: anand.shah
4 Replies
9. Shell Programming and Scripting
Hi All,
I have a list of words (these are actually a list of database table names separated by comma).
Now, I want to find only the non-existing list of words in the *.java files of current directory and/or its sub-directories.
Sample list of words:... (8 Replies)
Discussion started by: Bhanu Dhulipudi
8 Replies
10. Shell Programming and Scripting
i need to find a portable way to go through multiple directories to find a file.
I've trid something like this:
find /opt/oracle/diag/*/alert_HH2.log -printordinarily, i can run the ls command and it will find it:
/opt/oracle/diag/*/*/*/*/alert_HH2.log
The problem with this approach is... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT HPUX
diskaudit_flush_interval
diskaudit_flush_interval(5) File Formats Manual diskaudit_flush_interval(5)
NAME
diskaudit_flush_interval - determine time interval (in secs) for flushing audit records
VALUES
Failsafe
Default
Allowed values
Recommended values
DESCRIPTION
The tunable controls the periodic interval between two consecutive flushes of audit records buffered in the kernel memory which is bound to
a kernel thread. This kernel thread has 64KB of buffer size to hold the audit records, and there can be a maximum of 32 such threads.
These kernel threads automatically flush their buffers if the buffers fill up completely, but that might take a long time depending upon
the activities in the system.
The value of the tunable should be set such that the threads keep cleaning their buffers when they are approximately half full, or are idle
for a long time but still holding some data in the buffer. Keeping the tunable value too low will make threads flush too soon and may lead
to too many small write operations, thus impacting performance. On the other hand, keeping the value too high might lead to high unflushed
memory consumption.
Who Is Expected to Change This Tunable?
An administrator with proper privileges can change the value of
Restrictions on Changing
None. This tunable is dynamic.
When Should the Value of This Tunable Be Raised?
When the system is not processing many audit-related activities.
What are the Side Effects of Raising the Value?
If the system is generating large numbers of records, and the value is raised, then it can result in a lot of unflushed memory, and might
slow down the system.
When Should the Value of This Tunable Be Lowered?
When the system is generating a lot of audit records.
What are the Side Effects of Lowering the Value?
If the system is not generating too many records, and the value is lowered, it might lead to a lot of small numbers of writes, which actu-
ally only write to buffer cache and not immediately to the physical disk, with the actual write happening later on. This might impact per-
formance again.
What Other Tunable Values Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
audit(5).
Tunable Kernel Parameters diskaudit_flush_interval(5)