The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: cron
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-25-2005
Unbeliever Unbeliever is offline
Registered User
 

Join Date: Jul 2005
Location: England
Posts: 183
Quote:
Originally Posted by matrixmadhan
2 * * * * <your_script_path>

use
man crontab
I'm afraid this will only run the cron script at 2 minutesd past each hour

To run it *every* 2 minutes you need something like:

0,2,4,6,8,<etc> * * * * <path_to_script>

On some versions of cron you can use a short hand

*/2 * * * * <path_to_script>
Reply With Quote