To make auto announcement work you must add it to your cron configuration:
{to edit what the announcement actually says edit /pwAdmin/AA/aa1.jsp}
(/etc/crontab) example:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
00 * * * * root /etc/cron.pw/aa1.sh
#
The preceeding example (adding the line in red) would make your auto announcement run once an hour, on the hour...
The format is as follows:
M = Minute [0-59] - This controls what minute of the hour the command will run
H = Hour [0-23] - This controls what hour of the day the command will run
DOM = Day of Month [1-31] - This controls what day of the month the command will run
MON = Month [1-12]or[Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec] - This controls what month of a year the command will run
DOW = Day of Week [0-6]or[Sun Mon Tue Wed Thu Fri Sat] - This controls what day of the week the command will run
USER = User [root] - This is the user who runs the command
CMD = Command [/etc/cron.pw/aa1.sh] - This is the command you desire to run
* = Wildcard - This is for not assigning a specific variable to a parameter
More examples (adding the following lines would):
0 * * * * root /etc/cron.pw/aa1.sh           # Run once an hour [@hourly]
0 0 * * * root /etc/cron.pw/aa1.sh           # Run once a day [@midnight]or[@daily]
0 0 * * 0 root /etc/cron.pw/aa1.sh           # Run once a week [@weekly]
0 0 1 * * root /etc/cron.pw/aa1.sh           # Run once a month [@monthly]
0 0 1 1 * root /etc/cron.pw/aa1.sh           # Run once a year [@yearly]or[@annually]
@reboot root /etc/cron.pw/aa1.sh           # Run @reboot (or any time the cron daemon is started/re-started)
*/5 * * * * root /etc/cron.pw/aa1.sh           # Run every 5 minutes
01 * * * * root /etc/cron.pw/aa1.sh           # This command would be ran at one min past every hour
17 8 * * * root /etc/cron.pw/aa1.sh           # This comman would be ran daily at 8:17 AM
17 20 * * * root /etc/cron.pw/aa1.sh           # This command would be ran daily at 8:17 PM
00 4 * * 0 root /etc/cron.pw/aa1.sh           # This command would be ran at 4:00 AM every SUNDAY
* 4 * * Sun root /etc/cron.pw/aa1.sh           # This command would be ran at 4:00 AM every SUNDAY -- as well
42 4 1 * * root /etc/cron.pw/aa1.sh           # This command would be ran at 4:42 AM every 1st of the month
01 * 19 07 * root /etc/cron.pw/aa1.sh           # This command would be ran HOURLY on the 19th of JULY
You can also make more than one by merely duplicating
/pwAdmin/AA/aa1.jsp ==> /pwAdmin/AA/aa2.jsp (edit for new announcement)
&
/etc/cron.pw/aa1.sh ==> /etc/cron.pw/aa2.sh (edit so it points to new [aa2].jsp)
and so on (just do not forget to also add them to crontable as well!)