Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Find file that are accessed less than 10 minutes in a directory Post 303025927 by vgersh99 on Thursday 15th of November 2018 09:55:30 AM
Old 11-15-2018
How about newer option of find?
Is that available?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find files not accessed on a remote server and delete - Help!

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

Find accessed file in past 1 or 2 minutes, and throw mail.

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

Find the age of a file in Minutes

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

Log to find users who accessed server before

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

Find out whether directory has been updated with files in the last 5 minutes or not

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

How to find out last 5 users who have accessed a file?

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 find and get a file in an entire directory with an excluded directory specified?

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

Grep a log file for the last 5 minutes of contents every 5 minutes

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

Check file creation Time minutes and if file older then 5 minutes execute some stuff

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

Find if create time of last created file in a directory is older than 5 minutes

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
CPANPLUS::inc(3pm)					 Perl Programmers Reference Guide					CPANPLUS::inc(3pm)

NAME
CPANPLUS::inc DESCRIPTION
OBSOLETE NAME
CPANPLUS::inc - runtime inclusion of privately bundled modules SYNOPSIS
### set up CPANPLUS::inc to do it's thing ### BEGIN { use CPANPLUS::inc }; ### enable debugging ### use CPANPLUS::inc qw[DEBUG]; DESCRIPTION
This module enables the use of the bundled modules in the "CPANPLUS/inc" directory of this package. These modules are bundled to make sure "CPANPLUS" is able to bootstrap itself. It will do the following things: Put a coderef at the beginning of @INC This allows us to decide which module to load, and where to find it. For details on what we do, see the "INTERESTING MODULES" section below. Also see the "CAVEATS" section. Add the full path to the "CPANPLUS/inc" directory to "$ENV{PERL5LIB". This allows us to find our bundled modules even if we spawn off a new process. Although it's not able to do the selective loading as the coderef in @INC could, it's a good fallback. METHODS
CPANPLUS::inc->inc_path() Returns the full path to the "CPANPLUS/inc" directory. CPANPLUS::inc->my_path() Returns the full path to be added to @INC to load "CPANPLUS::inc" from. CPANPLUS::inc->installer_path() Returns the full path to the "CPANPLUS/inc/installers" directory. CPANPLUS::inc->original_perl5lib Returns the value of $ENV{PERL5LIB} the way it was when "CPANPLUS::inc" got loaded. CPANPLUS::inc->original_perl5opt Returns the value of $ENV{PERL5OPT} the way it was when "CPANPLUS::inc" got loaded. CPANPLUS::inc->original_inc Returns the value of @INC the way it was when "CPANPLUS::inc" got loaded. CPANPLUS::inc->limited_perl5opt(@modules); Returns a string you can assign to $ENV{PERL5OPT} to have a limited include facility from "CPANPLUS::inc". It will roughly look like: -I/path/to/cpanplus/inc -MCPANPLUS::inc=module1,module2 CPANPLUS::inc->interesting_modules() Returns a hashref with modules we're interested in, and the minimum version we need to find. It would looks something like this: { File::Fetch => 0.06, IPC::Cmd => 0.22, .... } INTERESTING MODULES
"CPANPLUS::inc" doesn't even bother to try find and find a module it's not interested in. A list of interesting modules can be obtained using the "interesting_modules" method described above. Note that all subclassed modules of an "interesting module" will also be attempted to be loaded, but a version will not be checked. When it however does encounter a module it is interested in, it will do the following things: Loop over your @INC And for every directory it finds there (skipping all non directories -- see the "CAVEATS" section), see if the module requested can be found there. Check the version on every suitable module found in @INC After a list of modules has been gathered, the version of each of them is checked to find the one with the highest version, and return that as the module to "use". This enables us to use a recent enough version from our own bundled modules, but also to use a newer module found in your path instead, if it is present. Thus having access to bugfixed versions as they are released. If for some reason no satisfactory version could be found, a warning will be emitted. See the "DEBUG" section for more details on how to find out exactly what "CPANPLUS::inc" is doing. DEBUG
Since this module does "Clever Things" to your search path, it might be nice sometimes to figure out what it's doing, if things don't work as expected. You can enable a debug trace by calling the module like this: use CPANPLUS::inc 'DEBUG'; This will show you what "CPANPLUS::inc" is doing, which might look something like this: CPANPLUS::inc: Found match for 'Params::Check' in '/opt/lib/perl5/site_perl/5.8.3' with version '0.07' CPANPLUS::inc: Found match for 'Params::Check' in '/my/private/lib/CPANPLUS/inc' with version '0.21' CPANPLUS::inc: Best match for 'Params::Check' is found in '/my/private/lib/CPANPLUS/inc' with version '0.21' CAVEATS
This module has 2 major caveats, that could lead to unexpected behaviour. But currently I don't know how to fix them, Suggestions are much welcomed. On multiple "use lib" calls, our coderef may not be the first in @INC If this happens, although unlikely in most situations and not happening when calling the shell directly, this could mean that a lower (too low) versioned module is loaded, which might cause failures in the application. Non-directories in @INC Non-directories are right now skipped by CPANPLUS::inc. They could of course lead us to newer versions of a module, but it's too tricky to verify if they would. Therefor they are skipped. In the worst case scenario we'll find the sufficing version bundled with CPANPLUS. perl v5.10.0 2007-12-18 CPANPLUS::inc(3pm)
All times are GMT -4. The time now is 02:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy