To add the script to crontab
- crontab -e
- add the below line */5 * * * * /path/to/script the above would run the cron every 5 minutes
to run every minute :: * * * * * /path/path/to/script
every 10 minutes :: */10 * * * * /path/to/script
-
to check logs tail -f /var/mail/root (if logged in via root)
-
also tail -f /var/log/syslog