crontab every 2 seconds code example Example: cron job every 10 seconds */10 * * * * * will run every 10 sec.