Results 1 to 4 of 4

Thread: What is centos crontab?

  1. #1
    Join Date
    Jul 2009
    Posts
    11

    What is centos crontab?

    What is centos crontab? I am about to install centos on my computer. I was just going through the features and i came acros this thing crontab. What is it? What does it do? Just a curious noob. So please help...

  2. #2
    Join Date
    Jan 2009
    Posts
    203

    Re: What is centos crontab?

    Cron is a time-based job scheduler in Unix-like computer operating systems. 'cron' is short for 'chronograph'. Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date. It is commonly used to perform system maintenance or administration, though its general purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email...

  3. #3
    Join Date
    Jan 2008
    Posts
    3,388

    Re: What is centos crontab?

    The default contents of the main config file of crontab contains the following content :
    Code:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    HOME=/
    
    # run-parts
    01 * * * * root run-parts /etc/cron.hourly
    02 4 * * * root run-parts /etc/cron.daily
    22 4 * * 0 root run-parts /etc/cron.weekly
    42 4 1 * * root run-parts /etc/cron.monthly
    Crontab is basically used for scheduling programs or applications to run at a specific time similar to windows task scheduler. Hope this helps you...

  4. #4
    Join Date
    May 2008
    Posts
    4,085

    Re: What is centos crontab?

    Example of crontab's usage :

    Code:
    # record the memory usage of the system every monday 
    # at 3:30AM in the file /tmp/meminfo
    30 3 * * mon cat /proc/meminfo >> /tmp/meminfo
    # run custom script the first day of every month at 4:10AM
    10 4 1 * * /root/scripts/backup.sh
    For complete detail visit redhat's official site. CentOS is derived from redhat so no issues of changes in feature. See the complete documentation : http://www.redhat.com/docs/manuals/l...cron-task.html

Similar Threads

  1. Replies: 5
    Last Post: 06-05-2011, 10:30 AM
  2. how to upgrade from CentOS 5.5 to centos 5.6
    By manhat in forum Operating Systems
    Replies: 6
    Last Post: 02-05-2011, 04:20 PM
  3. Problem with crontab
    By Renfred in forum Software Development
    Replies: 4
    Last Post: 26-12-2009, 06:45 AM
  4. Linux Crontab syntax
    By jean-paul martell in forum Operating Systems
    Replies: 3
    Last Post: 13-08-2009, 02:15 PM
  5. Scripts not running in crontab
    By Frasier in forum Operating Systems
    Replies: 6
    Last Post: 22-10-2008, 01:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,436,104.57214 seconds with 16 queries