Sponsored Content
Full Discussion: maintain database script...
Top Forums UNIX for Dummies Questions & Answers maintain database script... Post 302350795 by Radar on Saturday 5th of September 2009 11:39:58 AM
Old 09-05-2009
So you want to baseline a set of files with a checksum and track changes to those files by checking against the checksums stored in the database?

Look at Afick and AIDE for examples to get you going.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maintain 30 days data

Hi Folks, I have a log file that keeps the information pn the date and time a specific transaction is firedup. I found that the log file keeps growing and I intend to limit the entry to the log file to 30 days. Log file name is transaction.log, here is the content: 120802_23:47:37 ... (3 Replies)
Discussion started by: odogbolu98
3 Replies

2. Shell Programming and Scripting

Shell Script: want to insert values in database when update script runs

Hi , I am new to linux and also also to shell scripting. I have one shell script which unpacks .tgz file and install software on machine. When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies

3. Shell Programming and Scripting

Maintain full path of a script in a var when sourcing it from a different script

Hi All, I've searched through the forum for a solution to this problem, but I haven't found anything. I have 2 script files that are in different directories. My first script, let's call it "/one/two/a.sh" looks like this: #!/bin/sh IN_DIR=`dirname $0` CUR_DIR=`pwd` cd $IN_DIR... (4 Replies)
Discussion started by: mrbluegreen
4 Replies

4. Shell Programming and Scripting

How to maintain wildcard array variable

Hi all, I have this scenario where:- The file that I want to save its name into array df is my.08120323.trx which is located in the dir as below: $ pwd /u01/abc/def/SRC_datafiles $ ls *trx my.08120323.trx $ df=*"trx" ##keeping the filename my.08120323.trx into df $... (2 Replies)
Discussion started by: luna_soleil
2 Replies

5. UNIX for Dummies Questions & Answers

Just asking - Tips on how to maintain your scripts ..

Hi all, Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ... At the moment, am having them in directories and files and no... (2 Replies)
Discussion started by: newbie_01
2 Replies

6. Shell Programming and Scripting

Log maintain in Perl

hi , While working on perl, have to write a continuous log file which I can monitor. I tried like, open (LOG,'>'.$log.'/Report_'.$todaysdate.'.log') or die("Unable to create the log file"); print LOG "\nDate : ".`date`; But when I ran the script in backend and monitor log, it... (1 Reply)
Discussion started by: Deei
1 Replies

7. Shell Programming and Scripting

maintain 32bit and 64bit C code

Hi, I have a C code which builds and works fine on 32bit linux machine. Now i want to convert that code to build and run on 64 bit linux machine. I dont want to maintain two separate sources for 32 and 64 bit build. Same source should get build on 32 as well as 64 bit machine (when a... (2 Replies)
Discussion started by: bhushan123
2 Replies

8. Shell Programming and Scripting

Script to maintain file versions

I am developing a script to maintain 'n' number of versions of a file. The script will take a filename as a parameter and the number of versions to maintain. This basically does something like a FIFO. Here is what I developed. But something is not right. I have attached the script. Can u pls help... (2 Replies)
Discussion started by: vskr72
2 Replies

9. UNIX for Dummies Questions & Answers

Script that will Delete and Maintain Files

Hi guys, Good day to all and Happy New Year!!! Cheers!!! I hope anyone could help/suggest me on hot to create a script that will monitor the directory where files are being dumped. I have a script in CRON that runs everyday and collect for logs with a filename of Output_$(date... (3 Replies)
Discussion started by: rymnd_12345
3 Replies

10. Shell Programming and Scripting

Script FTP maintain error handling

Hi, I have ftp script like below How to insert an error handling, If the transfer failed then send mail to me. Actually, I just need the script to send an email if the FTP failed. How to put the email script within FTP script? Thank You Edy (5 Replies)
Discussion started by: edydsuranta
5 Replies
aide(1) 						      General Commands Manual							   aide(1)

NAME
aide - Advanced Intrusion Detection Environment SYNOPSIS
aide [parameters] command DESCRIPTION
aide is an intrusion detection system for checking the integrity of files. COMMANDS
--check, -C Checks the database for inconsistencies. You must have an initialized database to do this. This is also the default command. Without any command aide does a check. --init, -i Initialize the database. You must initialize a database and move it to the appropriate place before you can use the --check command. --update, -u Checks the database and updates the database non-interactively. The input and output databases must be different. --compare Compares two databases. They must be defined in configfile with database=<url> and database_new=<url>. --config-check, -D Stops after reading in the configuration file. Any errors will be reported. If aide was compiled with the "--with-dbhmackey" option, a hash for the config file will be calculated. See the aide manual for more information. PARAMETERS
--config=configfile , -c configfile Configuration is read from file configfile instead of "./aide.conf". Use '-' for stdin. --before="configparameters" , -B "configparameters" These configparameters are handled before the reading of the configuration file. See aide.conf (5) for more details on what to put here. --after="configparameters" , -A "configparameters" These configparameters are handled after the reading of the configuration file. See aide.conf (5) for more details on what to put here. --verbose=verbosity_level,-Vverbosity_level Controls how verbose aide is. Value must [0-255]. The default is 5. With no argument Value is set to 20. This parameter overrides the value set in a configuration file. --report=reporter,-r reporter reporter is a URL which tells aide where to send it's output. See aide.conf (5) section URLS for available values. --version,-v aide prints out its version number --help,-h Prints out the standard help message. DIAGNOSTICS
Normally, the exit status is 0 if no errors occurred. Except when the --check command was requested, in which case the exit status is defined as: 1 * (new files detected?) + 2 * (removed files detected?) + 4 * (changed files detected?) Additionally, the following exit codes are defined for generic error conditions: 14 Error writing error 15 Invalid argument error 16 Unimplemented function error 17 Invalid configureline error 18 IO error 19 Version mismatch error NOTES
Please note that due to mmap issues, aide cannot be terminated with SIGTERM. Use SIGKILL to terminate. FILES
/etc/aide/aide.conf Default aide configuration file. /etc/aide/aide.conf.d Config snippets which are automatically concatenated to the configuration file by update-aide.conf. This is a Debian extension. aide.db Default aide database. aide.db.new Default aide output data- base. SEE ALSO
aide.conf(5) http://www.cs.tut.fi/~rammer/aide/manual.html BUGS
There are probably bugs in this release. Please report them at http://sourceforge.net/projects/aide and to the Debian BTS. Bug fixes are more than welcome. Unified diffs are preferred. DISCLAIMER
All trademarks are the property of their respective owners. No animals were harmed while making this webpage or this piece of software. Although some pizza delivery guy's feelings were hurt. aide(1)
All times are GMT -4. The time now is 11:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy