cron job on solaris 10
here is some ways to enabled cron job on solaris 10.
bash-3.00# export EDITOR=vi
bash-3.00# crontab -e root
* * * * * command to be executed
- – – – -
| | | | |
| | | | +—– day of week (0 – 6) (Sunday=0)
| | | +——- month (1 – 12)
| | +——— day of month (1 – 31)
| +———– hour (0 – 23)
+————- min (0 – 59)
ex:
* * * * * /apps/logs/bluecoat/bcscript.sh
configuration above will execute “bcscript.sh” script on “/apps/logs/bluecoat/” every minute
restart the cron service daemon with the following command:
bash-3.00# svcadm restart cron
bash-3.00# svcs cron
STATE STIME FMRI
online 13:42:07 svc:/system/cron:default
a litle differencess on checkoint connectra:
to edit cron configuration, type these following command:
to restart cron service daemon type these following command
references:
http://www.adminschoice.com/docs/crontab.htm