Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, Below is the cronttab setting for one of the scripts in our environment: 40 11 16 12 0 /home/file_delete.sh please let me know exactly in which times and conditions ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8

    Crontab meaning


    Hi,

    Below is the cronttab setting for one of the scripts in our environment:

    40 11 16 12 0 /home/file_delete.sh

    please let me know exactly in which times and conditions the script will run.

    Regards.

  2. #2
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    Quote Originally Posted by adhar View Post
    Hi,

    Below is the cronttab setting for one of the scripts in our environment:

    40 11 16 12 0 /home/file_delete.sh

    please let me know exactly in which times and conditions the script will run.

    Regards.
    any update!

  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    The cron already ran and wont run again for a long time.

    Rather than duplicating the man page here, it might be more precise if you read the explanations of the columns in the original.
    Code:
    man 5 crontab
    You must always face the curtain with a bow.

  4. #4
    Just Joined!
    Join Date
    Nov 2009
    Posts
    8
    Hi,

    Thanks for the update.
    I only wanted to know that it will run only on 16th dec 2012 or on 16th dec as well as every sunday of Dec 2012

    Regards

  5. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    Well, there is no definition of "year"
    Also "day of the week" (sunday in your case) and "day of the month" (16th) both lead to matches (logical or).

    So it will run on 16th of a december as well as on any sunday in a december at 11:40.
    You must always face the curtain with a bow.

  6. #6
    Just Joined!
    Join Date
    Apr 2008
    Location
    Surrey, UK
    Posts
    7
    Quote Originally Posted by Irithori View Post
    The cron already ran and wont run again for a long time.

    Rather than duplicating the man page here, it might be more precise if you read the explanations of the columns in the original.
    Code:
    man 5 crontab
    Just a thought - put an alias into /etc/bashrc

    alias man='man -a'

    This will ensure that you, and other users, will see all the manual entries for a particular command.

  7. #7
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    "man -a"! Awesome! I never knew and would not have known about the -a option to man if not for your post. Love it! Sometimes knowledge of the sections doesn't matter, and I still end up having to search through the different pages.

    Thanks!

  8. #8
    Just Joined!
    Join Date
    Mar 2009
    Location
    Santa Cruz, California
    Posts
    76
    It's important to look at the man entries, as different Linux distros work a bit differently. In this case, both for cron and crontab, and man -a crontab. Other *nix systems are even more different, such as *BSD systems and commercial Unix systems.

    And thanks to JGSheppard for pointing out the -a flag. That saves knowing all possible types for a keyword!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •