The code I created monitors directories, files and reports when it has changed. It saves the md5sums of the files it is monitoring and sends alert whenever any files change.
It sends an excel report to admin. My code is not working. I getting error messages.
log.xlsx - the log output should look like the following:
Here is my code:
Last edited by zaxxon; 09-28-2015 at 04:46 AM..
Reason: some more code tags
Other then mentioned in previous post there is a quicker way.
Check out -c option of md5sum.
So basically you start a find with absolute paths and run md5sum on every file required redirecting output into a file.
Then you just run
It will report if checksum has changed since the last find ran, which you can parse further.
Other then that, if you are on Linux systems you might as well use inotifywatch so achieve the same (constant logging of changes made and on which files).
Remember, you cannot use it on NFS filesystems.
Hello All,
Want to share here an article for Whats app users that team whats app is requesting users to upgrade to its latest version since they have found a vulnerability; where Hacker could turn on a cell's camera, mic and scan messages and emails.
Here is an article from "THE VERGE" for... (1 Reply)
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Hello,
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
For instance.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Basic:
find . -type f -name “*.txt” -print | awk '{gsub("Ontem", "AntesdeOntem", $0); print > FILENAME}' *.txt
The idea is in folder /home/myapontamentos
I have some files and i need to change in all them the word "ontem" to "antesdeontem".
But bigger files are cut (size i mean)... (4 Replies)
Hi All,
We are having important config files in an directory which was accessable by all
/auto/config/Testbed/>ls
config1.intial
config2.intial
config3.inital
often we find that some of the lines are missing in config files, we doubt if some one is removing.
I would like to write... (0 Replies)
hi everyone
I have a directory /usr5/sch.
The shell is /bin/csh/. In this directory, I have a script called cs-claims-tst that runs an object cobol that going over a few other directory and open files and inserting them to d.b!
If i run this script from its current directory, it works o.k, ... (8 Replies)
Hello
If you want a short description read my last thread!
I have no root access anymore. No remote access! By user access i get a programm started and when i close it, i got logged off!
So I guess I messed up the passwd file!
is there a chance of booting a unix system (SCO-UNIX UnixWare... (15 Replies)