Sponsored Content
Top Forums Shell Programming and Scripting IF loop to check the time modified Post 302781261 by mahesh300182 on Friday 15th of March 2013 08:42:30 PM
Old 03-15-2013
Hi Mirni,

Thanks for th eprompt reply..... i think this will defenitely help me... is -mtime -1 will get the files modified 1 day back right? is there any way to get files modified 30 mins ago...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Modified time

How do you change the modified time of a file on UNIX?? (4 Replies)
Discussion started by: frank
4 Replies

2. Shell Programming and Scripting

Check if file modified

Hi, I have a monitoring script that I run, and I would like to automate checking if specific parameter file is modified during the last day or two. How do I do that? (1 Reply)
Discussion started by: nimo
1 Replies

3. Shell Programming and Scripting

getting last accessed and modified time together

actually, i'm making an Intrusion Detection System for education purpose (for project) using Bourne shell. The problem I get in that is:- 1. My application should check if there's some modification or alteration in the directory. 2, For that thing, I need to have every attribute of file and... (1 Reply)
Discussion started by: raku05
1 Replies

4. Shell Programming and Scripting

Finding out the last modified time for files

I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS. Thanks in Advance, Kiran (3 Replies)
Discussion started by: kumariak
3 Replies

5. Shell Programming and Scripting

changing modified time

How to change the modified time of a file to any specified time. ls -ltr drwxr-xr-x 2 pipe pipe 4096 Jun 10 10:33 coredump_06062008 ---------------------------------------------------------------------- here file coredump_06062008 last modified time is Jun 10 10:33 and i... (1 Reply)
Discussion started by: ali560045
1 Replies

6. Shell Programming and Scripting

Compare Last Modified Time across Time Zone

Hi, I'm new to shell script programming, I only have Java programming background. I'm writing a shell script to do file synchronization between 2 machines that located at different time zone area. Both machine were set its time zone according to its geographical location (Eg: server is at... (1 Reply)
Discussion started by: python
1 Replies

7. Shell Programming and Scripting

Grep for modified time

is it possible to come up with a list of files that are modified before a certain number of hours only using the grep command? ex. list files that were modified less than 10 hours ago i've only managed to list files that were created on the same day, i can't seem to figure out how to work... (3 Replies)
Discussion started by: momo.reina
3 Replies

8. Homework & Coursework Questions

Grep for modified time

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: is it possible to come up with a list of files that are modified before a certain number of hours only using the... (3 Replies)
Discussion started by: momo.reina
3 Replies

9. Shell Programming and Scripting

How to check when cron is modified

Hi all, We use cron "/usr/rdl/sc/cccron" to execute our jobs. But sometimes it is being changed. but we are not sure when it is changed. how could we find when cron is modified. i checked cron by giving ls -l . but it is showing 2009 year. ls -l /usr/rdl/sc/cccron -r-xr-xr-x 1... (0 Replies)
Discussion started by: Divakar
0 Replies

10. UNIX for Dummies Questions & Answers

How to check when cron was modified

Hi all, We use cron "/usr/rdl/sc/cccron" to execute our jobs. But sometimes it is being changed. but we are not sure when it is changed. how could we find when cron is modified. i checked cron by giving ls -l . but it is showing 2009 year. ls -l /usr/rdl/sc/cccron -r-xr-xr-x 1... (2 Replies)
Discussion started by: Divakar
2 Replies
invsync(8)						      System Manager's Manual							invsync(8)

NAME
invsync - Synchronizes system inventory SYNOPSIS
/usr/bin/invsync DESCRIPTION
The invsync utility creates a Master Synchronization Inventory (MSI) file and a Customized File Inventory (CFI) file. These files can be used to preserve the customized or modified state of your system in the event of a new installation. The MSI file contains a complete list of files installed by the setld utility and the state of those files when they were installed. The CFI file contains the names of those files installed by the setld utility that have been customized or modified since the installation. The files listed in the CFI file are overwritten if you perform a new installation of the operating system. You must have superuser privileges to run the invsync utility. The invsync utility calls the usync utility to create the MSI file. After the MSI file is created, the invsync utility calls the udetect utility to compare the state of the files shown in the MSI file with the current state of the files installed on the system. If a file state differs, an entry is written to the CFI file. Edit the CFI file to remove the entries for files that you do not want to back up. The CFI file and the MSI file are written in the setld inventory file format. For more information, refer to the stl_inv(4) refernce page. RESTRICTIONS
You must have superuser privileges to run the invsync utility. FILES
Subset lock files Subset inventory files Customized File Inventory Master Synchronization Inventory SEE ALSO
genufi(8), udetect(8), updmerge(8), updmv(8), usync(8) stl_inv(4) invsync(8)
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy