11-15-2018
Its HP-UX & bash shell
yeah, i checked with find & atime option. Its giving the files that are accessed in 'days' i.e atime -1 gives the files accessed less than in a day
But i need to check the files accessed in 10 mins time.
Any leads?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I am currently working on a script to find all the files that have not been accessed for the past 2 years. This, i guess has been discussed n number of times in this forum. Now, my requirement is to find all the files in the remote windows server. I have it mounted in unix.
I was... (1 Reply)
Discussion started by: bond_bhai
1 Replies
2. UNIX for Advanced & Expert Users
Can Anyone tell me how to write the Script to "find file(s) in a directory that is being accessed in last 5 minutes, and if there is result of that find, then throw the mail ".
Means throw the mail to a person regarding whoever and whenever a file is accessed in a directory.
ASAP.
Thnks. (2 Replies)
Discussion started by: varungupta
2 Replies
3. Shell Programming and Scripting
KSH:
Please lt me know how to find the age of a file in minutes(Based on last modified time).
ie, if the file was modified 15 Minutes ago, the output should be 15 (1 Reply)
Discussion started by: hari_anj
1 Replies
4. Shell Programming and Scripting
Hi,
please provide the steps/commands to find out the user id list who accessed server before i logon same server.
Thank you very much ffor all your support. (2 Replies)
Discussion started by: sridhardwh
2 Replies
5. Shell Programming and Scripting
Hi,
I am trying to work on this script that needs to monitor a Directory.
In case there are no files received in that Directory for the last 5 minutes, it has to send out an alert.
Could someone please suggest any approach for the same.
Note: I did check out various previous psts -... (8 Replies)
Discussion started by: rituparna_gupta
8 Replies
6. UNIX for Advanced & Expert Users
Hi All,
is there any command or script to find out last five users who have accessed a file
thanks
jcpratap (1 Reply)
Discussion started by: Jcpratap
1 Replies
7. UNIX for Beginners Questions & Answers
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
8. Shell Programming and Scripting
Hi all,
System Ubuntu 16.04.3 LTS
i have the following log
INFO 2019-02-07 15:13:31,099 module.py:700] default: "POST /join/8550614e-3e94-4fa5-9ab2-135eefa69c1b HTTP/1.0" 500 2042
INFO 2019-02-07 15:13:31,569 module.py:700] default: "POST /join/6cb9c452-dcb1-45f3-bcca-e33f5d450105... (15 Replies)
Discussion started by: charli1
15 Replies
9. Shell Programming and Scripting
Hello all,
Info:
System RedHat 7.5
I need to create a script that based on the creation time,
if the file is older then 5 minutes then execute some stuff, if not exit.
I thought to get the creation time and minutes like this.
CreationTime=$(stat -c %y /tmp/test.log | awk -F" " '{ print... (3 Replies)
Discussion started by: charli1
3 Replies
10. UNIX for Beginners Questions & Answers
A process xyz is running and creating file1, file2, file3, .... filen. how do i know if the process has stopped and createtime of the last file (filen) is older than 5 minutes?
OS is AIX (3 Replies)
Discussion started by: malaika
3 Replies
LEARN ABOUT DEBIAN
dwww-cache
DWWW-CACHE(8) Debian DWWW-CACHE(8)
NAME
dwww-cache - manage the dwww cache of converted documents
SYNOPSIS
dwww-cache --lookup type location
dwww-cache --store type location
dwww-cache --list type location
dwww-cache --list-all
dwww-cache --clean
DESCRIPTION
dwww-cache manages the cache of converted documents; it is part of dwww(7). An option (the first argument) specifies the operation. Some
operations operate on the whole cache, and need no other arguments. Others need the second and third argument to specify the type and
pathname of the original document. (See dwww-convert(8) for more information about the arguments.)
The operations are:
--lookup
If the document is in the cache, output it to the standard output. Otherwise, output nothing and return a non-zero status.
--store
Read the document from the standard input, output it to the standard output and store it into the cache. If there was an older ver-
sion already in the cache, remove it.
--list Output information about one document in the cache to the standard output. The information is one line, with four space delimited
fields: type, pathname of original, pathname of cached, and permanent flag (y or n).
--list-all
Like --list, but for all documents.
--clean
Forget all cached documents that have been deleted.
dwww-cache maintains a database with information of the cached documents. The documents themselves are stored in separate files in the
cache directory. When old documents are removed from the cache by a suitable crontab entry, they will still exist in the database. This
operation removes all entries from the database where either the original or the converted file is now missing.
To stop the cache from growing too large, an entry in root's crontab should remove cached files that have not been accessed for a while.
For example, the following commands remove all documents that have not been accessed for ten days:
find /var/cache/dwww -atime +10 | xargs rm -f
dwww-cache --clean
The idea is to first delete the old cached files and then clean up the database. The policy of cleaning the cache has been kept outside of
dwww-cache to keep the program simple, and to allow maximum flexibility. The default dwww installation creates a /etc/cron.daily/dwww,
which automatically cleans the cache each day.
FILES
/var/cache/dwww/db
The cache directory.
/var/cache/dwww/db/.cache_db
The database with information about all cached documents. This is a binary file, specially encoded for small size and high speed,
and should not be touched by anyone but dwww-cache.
SEE ALSO
dwww(7), dwww-convert(8).
AUTHOR
Lars Wirzenius <liw@iki.fi>. Modified by Robert Luberda <robert@debian.org>.
See dwww(7) for copyrights and stuff.
dwww 1.11.1 February 15th, 2009 DWWW-CACHE(8)