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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT PHP
xdiff_file_merge3
XDIFF_FILE_MERGE3(3) 1 XDIFF_FILE_MERGE3(3)xdiff_file_merge3 - Merge 3 files into oneSYNOPSIS
mixed xdiff_file_merge3 (string $old_file, string $new_file1, string $new_file2, string $dest)
DESCRIPTION
Merges three files into one and stores the result in a file $dest. The $old_file is an original version while $new_file1 and $new_file2
are modified versions of an original.
PARAMETERS
o $old_file
- Path to the first file. It acts as "old" file.
o $new_file1
- Path to the second file. It acts as modified version of $old_file.
o $new_file2
- Path to the third file. It acts as modified version of $old_file.
o $dest
- Path of the resulting file, containing merged changed from both $new_file1 and $new_file2.
RETURN VALUES
Returns TRUE if merge was successful, string with rejected chunks if it was not or FALSE if an internal error happened.
EXAMPLES
Example #1
xdiff_file_merge3(3) example
The following code merges three files into one.
<?php
$old_version = 'original_script.php';
$fix1 = 'script_with_fix1.php';
$fix2 = 'script_with_fix2.php';
$errors = xdiff_file_merge3($old_version, $fix1, $fix2, 'fixed_script.php');
if (is_string($errors)) {
echo "Rejects:
";
echo $errors;
}
?>
SEE ALSO xdiff_string_merge3(3).
PHP Documentation Group XDIFF_FILE_MERGE3(3)