Skip to content

XceptN’s Tech Stuff

All About Tech

Unix / Linux Job Automation “crontab” Tips

Posted on March 20, 2009 By XceptN No Comments on Unix / Linux Job Automation “crontab” Tips

Below are the tips I keep in mind with respect to crontab file format / configuration on Linux and Unix systems.

  • crontab file line layout is:

minute hour day month dayofweek command

  • For any one of columns you can use a “*” to match every instance

e.g. * for hour column means every hour (at the exact specified minutes)

  • For any one of columns you can use more than one value comma separated

e.g. 1,3,25 is 1,3 or 25 matched

  • For any one of columns you can use range of values with hyphen “-”

e.g. 4-7 is 4,5,6,7

  • For any one of columns you can define steps.

e.g. */3 in for “day” means once in every three days

  • For any one of columns you can combine ranges and values

e.g. 1-3,7,9-12 is actually 1,2,3,7,9,10,11,12

  • For any one of “minute hour day month dayofweek” you can define steps in custom ranges

e.g. 2-11/3 is actually 2,5,8,11

For more information you can check the manpages below:

  • man crontab ~ for the command usage
  • man 5 crontab ~ for the file format & configuration
linux, sysadm

Post navigation

Previous Post: Twitter Automation & Programming Twitter Engines
Next Post: How to Recursively “grep” a Subdirectory for a List of Files

Related Posts

Dipping Toes into Nix Package Manager | Installing Freeplane desktop
Adding Java plugin to Firefox desktop
How to Recursively “grep” a Subdirectory for a List of Files desktop
Darn! Scanned Document into PDF but Need to Rotate desktop
Exporting Evolution (contacts) Entries desktop
How to Distinguish Environment Variables from Different Shells in “bash”? linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Analyzing Memory Usage on Linux 6.19
  • Enabling “real-time-protection” with ClamAV on Ubuntu 24.04 Desktop for Palo Alto Networks Global Protect (PanGP) VPN
  • Dipping Toes into Nix Package Manager | Installing Freeplane
  • Fujitsu Workplace Protect Face Recognition Best Practices on Q704
  • Fujitsu STYLISTIC Q704 Fingerprint Scanner Problems

Recent Comments

  1. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  2. XceptN on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  3. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  4. Kaylee on Mounting an LVM Logical Volume in an Oracle VM Disk Image
  5. Theron Conrey on Open Source Virtualization for Smaller Carbon Footprint

Archives

  • April 2026
  • September 2025
  • June 2024
  • November 2014
  • October 2014
  • April 2014
  • March 2014
  • December 2012
  • November 2012
  • October 2010
  • April 2010
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008

Categories

  • blogging
  • communication
  • desktop
  • development
  • firmware
  • Fujitsu
  • gprs
  • gps
  • hardware
  • internet
  • java
  • kernel
  • keyboard
  • linux
  • masteryourbiz
  • mms
  • mobile
  • multimedia
  • network
  • OracleVM
  • palm
  • python
  • rokr e6
  • social media networking
  • storage
  • sysadm
  • tablet
  • twitter
  • virtualization
  • wap
  • windows
  • wordpress
  • xen

Copyright © 2026 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark