cron.daily bash scripting question
- From: Beowulf <beowulf@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Dec 2006 10:20:13 -0600
I created the text file below, wrote it to /etc/cron.daily/aide and
made it readable, writeable. and executable by root (same permissions as
other scripts in /etc/cron.daily/). Is this all I need to do have this
bash script run daily? Or do I need to edit some special cron file of some
sort? Does the syntab look ok in this file? This is my first attempt at a
cron job using a bash script. (email address is of course bogus). Any
assistance appreciated.
#!/bin/sh
# Advanced Intrusion Detection System (aide) report
/usr/bin/aide --check -V2 > /home/beowulf/aide-check.txt
cat /home/beowulf/aide-check.txt | mailx -s "Report" me@xxxxxxxxxxxx
# End of file.
.
- Follow-Ups:
- Re: cron.daily bash scripting question
- From: Bit Twister
- Re: cron.daily bash scripting question
- Prev by Date: mailx (how is it able to send email?!?)
- Next by Date: Re: (LONG post) Found an HP USB printer I for Linux, but I have some questions...
- Previous by thread: mailx (how is it able to send email?!?)
- Next by thread: Re: cron.daily bash scripting question
- Index(es):
Relevant Pages
|