crontab: every odd minute

Posted on 2011-04-21
Last Modified: 2012-05-11
I use the crontab code below to do something every even minute.  How can I do something every odd minute?  

I want to do something every two minutes, starting with one minute after the hour.
*/2 * * * * do_something

Open in new window

Question by:hankknight
    1 Comment
    LVL 8

    Accepted Solution

    if you need one script to go off every even minute and then anthor ever odd set your cron jobs to go off as below, good for testing tcp / udp listeners
    every even minute 0-59/2 * * * *
    every odd minute 1-59/2 * * * *
    Taken from

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now