Command for activity by timestamp


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command for activity by timestamp
# 1  
Old 02-11-2011
Command for activity by timestamp

Does anyone know of a command line script that I can run to get information about whether any files were accessed or moved off of my machine during a given period of time?

What I'm thinking of is a command where you input two timestamps, and get back all activity on your system during that period of time.

Thanks in advance.
# 2  
Old 02-11-2011
Quote:
Originally Posted by dyelawn
Does anyone know of a command line script that I can run to get information about whether any files were accessed or moved off of my machine during a given period of time?

What I'm thinking of is a command where you input two timestamps, and get back all activity on your system during that period of time.

Thanks in advance.
The command you are looking for is `find', with its many switches I am confident you can tailor a solution to your need.
Particularly these switches could be beneficial:
-mtime
-ctime
-and

If you use the GNU find
-newer
Could be just the ticket.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Find Memory and activity from command output

Hello - I have a requirement to get the Memory(Xmx) and the activity name using it. Sample input info : 1502 02:57 /bin/sh /opt/rather/bar/deploy/bar_run.sh 1545 02:57 java -Drather.repository=/opt/rather/bar/deploy/JobSyng_Barol_Count/JobSyng_Barol_Count/../lib -Xms1024M... (3 Replies)
Discussion started by: Varja
3 Replies

2. Shell Programming and Scripting

Grep lines between last hour timestamp and current timestamp

So basically I have a log file and each line in this log file starts with a timestamp: MON DD HH:MM:SS SEP 15 07:30:01 I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies

3. Shell Programming and Scripting

To check timestamp in logfile and display lines upto 3 hours before current timestamp

Hi Friends, I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies

4. HP-UX

History command with timestamp

Hi, i want to print timestamp of the command along with output of 'history' command. Tried this export HISTTIMEFORMAT='%F %T'. But it did not work still getting history output in general way (line number and command). I'm using HP-UX B.11.23 U ia64. Requesting help in this regard. Thanks. (2 Replies)
Discussion started by: sam_bd
2 Replies

5. Shell Programming and Scripting

Need file timestamp without stat command

Hi all, I want to check whether a file is not updated in last 15 minutes, for this i need to get timestamp of file, (yyyy:mm:dd:hh:mi:ss). I dont have access to STAT command :(. Please suggest a program or command to do this . Thanks, Saravana (1 Reply)
Discussion started by: sam_1210
1 Replies

6. Shell Programming and Scripting

Separate date timestamp use awk or sed command ?

Hi, I have logfile like this : Actually the format is date format : yyyymmddHHMMSS and i want the log become this format yyyy-mm-dd HH:MM:SS for example 2009-07-19 11:46:52 Can somebody help me ? Thanks in advance (3 Replies)
Discussion started by: justbow
3 Replies

7. Shell Programming and Scripting

Command to get File Timestamp including seconds [Aix 5.3]

Is there a command (like ls -l) to get the file time stamp including seconds? The ls -l gives only the HH:MM, No SS I don't have a C compiler to call stat() I don't a command like stat too. Please help. (8 Replies)
Discussion started by: firdousamir
8 Replies

8. UNIX for Dummies Questions & Answers

how to get the timestamp using touch command

Can any one provide answer for the below 3 requirements, 1. file.txt grep "name" file.txt > file1.txt rm -f file.txt mv file1.txt file.txt as per abov, a pattern grepped in file.txt and the content moved to again file.txt My need is i want the timestamp of file.txt before chaning and... (3 Replies)
Discussion started by: prsam
3 Replies

9. UNIX for Dummies Questions & Answers

Using find command for timestamp based search

Hi, I am writing a script where i need to list all the files that have a scecific timestamp. I get this time stamp from another file. Is it possible to do this with 'find' command? Please let me know your valuable inputs. Thanks Sunny. (1 Reply)
Discussion started by: sunny_03
1 Replies

10. UNIX for Advanced & Expert Users

Deleting timestamp using sed command

Hi, I'm trying to compare Actual.html with a baseline.html However, everytime it fails b'coz of the timestamp differences between the two. So, thought of stripping off the timestamp from both the *html files before comparing using below sed command over Solaris Unix platform:... (3 Replies)
Discussion started by: elearn.latha
3 Replies
Login or Register to Ask a Question