Sponsored Content
Top Forums UNIX for Advanced & Expert Users Find accessed file in past 1 or 2 minutes, and throw mail. Post 302134282 by varungupta on Thursday 30th of August 2007 07:06:45 AM
Old 08-30-2007
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.
 

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. 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

3. Shell Programming and Scripting

find files from the past 7 days

Hi All, I have a file which contains the listing of another directory: >cat list.dat -rwxr-xr-x 1 test staff 10240 Oct 02 06:53 test.txtdd -rwxrwxrwx 1 test staff 0 Oct 04 07:22 test.txx -rwxrwxrwx 1 test staff 132 Sep 16 2007 test_tt.sh... (6 Replies)
Discussion started by: deepakgang
6 Replies

4. Shell Programming and Scripting

Find Command in the script throw error

Hi I have script that is developed to serch for 30 days old Directory & Files and then remove them ... when i run it successfully removes the Directory & files & but it throw errors on the screen .. .. + find . -type f -mtime +30 -exec rm -f {} ; + exit please help me ?? I... (0 Replies)
Discussion started by: Beginner123
0 Replies

5. 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

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

Find file that are accessed less than 10 minutes in a directory

Hi All,, I need to find the latest files that are accessed less than 10mins in a particular directory & send those files in an attachment. I could use the below simple one. But if the directory was not updated any recently i could mail the old file again, i need to eliminate that.. What shld... (8 Replies)
Discussion started by: Jeevitha
8 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
std::tr1::__detail::__numeric_constants< _Tp >(3cxx)					      std::tr1::__detail::__numeric_constants< _Tp >(3cxx)

NAME
std::tr1::__detail::__numeric_constants< _Tp > - SYNOPSIS
Static Public Member Functions static _Tp __1_pi () throw () static _Tp __2_sqrtpi () throw () static _Tp __euler () throw () static _Tp __gamma_e () throw () static _Tp __lnpi () throw () static _Tp __pi () throw () static _Tp __pi_2 () throw () static _Tp __pi_3 () throw () static _Tp __pi_4 () throw () static _Tp __sqrt1_2 () throw () static _Tp __sqrt2 () throw () static _Tp __sqrt3 () throw () static _Tp __sqrtpio2 () throw () Detailed Description template<typename _Tp>struct std::tr1::__detail::__numeric_constants< _Tp > A structure for numeric constants. Definition at line 60 of file special_function_util.h. Member Function Documentation template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__1_pi () throw () [inline], [static] Constant $ 1 / i $. Definition at line 75 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__2_sqrtpi () throw () [inline], [static] Constant $ 2 / t(i) $. Definition at line 78 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__euler () throw () [inline], [static] Constant Euler-Mascheroni $ e $. Definition at line 99 of file special_function_util.h. Referenced by std::tr1::__detail::__log_gamma_lanczos(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__gamma_e () throw () [inline], [static] Constant Euler's constant $ mma_E $. Definition at line 96 of file special_function_util.h. Referenced by std::tr1::__detail::__expint_E1_series(), std::tr1::__detail::__expint_Ei_series(), std::tr1::__detail::__expint_En_series(), std::tr1::__detail::__hyperg_reflect(), and std::tr1::__detail::__psi_series(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__lnpi () throw () [inline], [static] Constant $ (i) $. Definition at line 93 of file special_function_util.h. Referenced by std::tr1::__detail::__log_gamma(), and std::tr1::__detail::__sph_legendre(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi () throw () [inline], [static] Constant $ i $. Definition at line 63 of file special_function_util.h. Referenced by std::tr1::__detail::__airy(), std::tr1::__detail::__bessel_ik(), std::tr1::__detail::__bessel_jn(), std::tr1::__detail::__ellint_1(), std::tr1::__detail::__ellint_2(), std::tr1::__detail::__ellint_3(), std::tr1::__detail::__psi(), std::tr1::__detail::__riemann_zeta(), and std::tr1::__detail::__riemann_zeta_glob(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_2 () throw () [inline], [static] Constant $ i / 2 $. Definition at line 66 of file special_function_util.h. Referenced by std::tr1::__detail::__comp_ellint_1_series(), std::tr1::__detail::__comp_ellint_2_series(), and std::tr1::__detail::__poly_laguerre_large_n(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_3 () throw () [inline], [static] Constant $ i / 3 $. Definition at line 69 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__pi_4 () throw () [inline], [static] Constant $ i / 4 $. Definition at line 72 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt1_2 () throw () [inline], [static] Constant $ 1 / sqrt(2) $. Definition at line 90 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt2 () throw () [inline], [static] Constant $ t(2) $. Definition at line 81 of file special_function_util.h. template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrt3 () throw () [inline], [static] Constant $ t(3) $. Definition at line 84 of file special_function_util.h. Referenced by std::tr1::__detail::__airy(). template<typename _Tp > static _Tp std::tr1::__detail::__numeric_constants< _Tp >::__sqrtpio2 () throw () [inline], [static] Constant $ t(i/2) $. Definition at line 87 of file special_function_util.h. Referenced by std::tr1::__detail::__sph_bessel_ik(), and std::tr1::__detail::__sph_bessel_jn(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Thu Aug 2 2012 std::tr1::__detail::__numeric_constants< _Tp >(3cxx)
All times are GMT -4. The time now is 01:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy