Dark Ninja
10-29-2001, 11:52 AM
I recently installed Tripwire on my system, and, I want to run a security check once a night to make sure nothing has been changed on my system. (At least - nothing that shouldn't be changed, hasn't been changed.)
Anyway, I'd like to automate this proceedure, so I figured a bash shell script would be the best way.
I want the script to be able to run Tripwire, and then output the results to a file in a specific directory (already created by me). I also want the script to run every night at 3:00 AM.
Now, here's my script so far:
#!/bin/bash
tripwire -m c > /specified/directory/file.txt
First off, is this correct? Also, will it append to file.txt, or will it overwrite file.txt. (Append is what I am hoping for.)
My biggest problem, however, is getting it to run every night at 3. I know this involves crond, but, how would I set that up? I have almost no familiarity with crond.
Thanks for any help.
Dark Ninja
Anyway, I'd like to automate this proceedure, so I figured a bash shell script would be the best way.
I want the script to be able to run Tripwire, and then output the results to a file in a specific directory (already created by me). I also want the script to run every night at 3:00 AM.
Now, here's my script so far:
#!/bin/bash
tripwire -m c > /specified/directory/file.txt
First off, is this correct? Also, will it append to file.txt, or will it overwrite file.txt. (Append is what I am hoping for.)
My biggest problem, however, is getting it to run every night at 3. I know this involves crond, but, how would I set that up? I have almost no familiarity with crond.
Thanks for any help.
Dark Ninja