Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to get access time of a file upto the precision of seconds? Post 302509513 by kanus on Thursday 31st of March 2011 01:51:23 AM
Old 03-31-2011
No the stat command is not avaiable to me..
Neither is the anewer command avaiable.

Actually I want to find out if the file was just accessed at the moment..
So to use atime with find is an option but how can I giive 1 sec with it.
PLease help.
 

10 More Discussions You Might Find Interesting

1. Programming

find CPU Time for a function (subsecond precision)

Hi, I need to time a certain function in my C/C++ code and I am experiencing some difficulties. I timed it using wallclock time so I know that it takes approximately 500-600 microseconds with gettimeofday(&start, NULL); // my function call gettimeofday(&end, NULL); answer = (end.tv_sec -... (2 Replies)
Discussion started by: zynnel
2 Replies

2. UNIX for Dummies Questions & Answers

Access time of a file

I thought that access time of a file is time when the file was run last time (or I read somewhere that it's time when system lookup the file -> but I'm not sure when it really is) How is it exactly? Thank you for help! (11 Replies)
Discussion started by: MartyIX
11 Replies

3. Shell Programming and Scripting

File creation time in seconds

Hi All, Cany any one help me in solving this.. Problem statement: I have a requirement to find the time from which there are no files created in a given directory. For this I am assuming that I need to get the file creation time in seconds, then the current time in seconds using `date +%s`.... (7 Replies)
Discussion started by: chary
7 Replies

4. Shell Programming and Scripting

Time difference in seconds

date1=$(date +"%H:%M:%S") date2=$(date +"01:00:54") diff=$date2-$date1 echo $diff How to get the time difference in seconds. (4 Replies)
Discussion started by: sandy1028
4 Replies

5. Shell Programming and Scripting

need the last access time for a .gz file

i have file named aaaa. The file aaaa was zipped on one particular time. Need to know the command to find out when the file "aaaa" was actually zipped. (1 Reply)
Discussion started by: expert
1 Replies

6. Programming

How to search a file based on a time stamp backwards 10 seconds

Hi all, I'm after some help with this small issue which i'm struggling to work out a fix for. I have a file that contains records that all have a time stamp for each individual record, i need to search the file for a specific time stamp and then search back 10 seconds to see if the number... (2 Replies)
Discussion started by: sp3arsy
2 Replies

7. UNIX for Advanced & Expert Users

Print particular time upto the next occurance

Hi Guys, I am having some issue in one aspect. I am having data like - 00:00 X-1 Y-1 Z-4 A-5 E-6 . . . . 01:00 Z-9 X-1 Z-5 A-8 E-7 (2 Replies)
Discussion started by: aniketdixit
2 Replies

8. UNIX and Linux Applications

Limit Website access upto specific count

Hi to all, I am new to Linux. but i am facing issue with my web server in Ubuntu 11.10. In my webserver i want to restrict maximum users website access (e.g., suppose i want to restrict users to access web to 250 persons in single time). So can you please suggest me to how to do that in... (1 Reply)
Discussion started by: Chintanghanti
1 Replies

9. UNIX for Dummies Questions & Answers

Delay of upto 7 seconds after typing in putty

Hi Friends, I am facing a very strange issue . I type something on putty session of servers of my work(locating in North America) and it appears only after 7 seconds or so. I am located in India. It doesn't happen with my colleagues who are sitting next to me :(. I use the ssh protocol to connect... (4 Replies)
Discussion started by: kunwar
4 Replies

10. AIX

Getting files through find command and listing file modification time upto seconds

I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds. Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies
ident2(8)						      System Manager's Manual							 ident2(8)

NAME
ident2 - An advanced ident daemon SYNOPSIS
ident2 [options] DESCRIPTION
ident2 is an advanced ident daemon, which can run as an inetd service or on it's own. It has various features such as user defined and ran- dom replies, extensive logging, and full administrative control. OPTIONS
The program follows the usual GNU syntax command-line unless it is unsupported on your system. GNU options begin with two dashes(`-') and have much more descriptive names. -h, --help Show summary of options. -u, --usage Shows example command lines -v, --version Show version information -l, --license Show licensing information -a, --force-inetd Force inetd mode, if autodetection isn't working. -d, --force-daemon Force standalone daemon, if autodetection isn't working. -i, --use-user-ident Allow user defined ident replies. Just do a echo 'ident ar' > ~/.ident to change your ident reply. -y, --user-reply-file File ident2 should look for in user's homedir for replies. Default is ~/.ident -n, --allow-noident-file Disable replies for user if user has a ~/.noident file. This behavior is disabled by default. -o, --client-timeout Clients timeout after this many seconds -s, --dont-change-uid Ident2 will normally try to change it's uid to something less privileged if it finds it's uid to be 0. This option disables this behavior altogether. -r, --always-random Always send a random reply, regardless of what kind of request the client made. This is useful for abusing the ident protocol as well as assisting outgoing IP masqueraded connections. -m, --daemon-maxclients Daemon-only: Accept no more than this many connections at a time. -p, --daemon-port Daemon-only: Bind this port, instead of 'auth' aka 113 SEE ALSO inetd(8), inetd.conf(5) AUTHOR
This manual page was written by Alexander Reelsen <ar@rhwd.net>, for the Debian GNU/Linux system (but may be used by others). GNU ident2(8)
All times are GMT -4. The time now is 11:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy