Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I would like to comment and/or temporary disable a line in the crontab table. Is this possible ? Note: the syntax for crontab table is the following: * * ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136

    crontab : how to comment a line in crontab table ?


    Hello,

    I would like to comment and/or temporary disable a line in the crontab table.
    Is this possible ?

    Note: the syntax for crontab table is the following:

    * * * * * command to be executed
    - - - - -
    | | | | |
    | | | | +----- day of week (0 - 6) (Sunday=0)
    | | | +------- month (1 - 12)
    | | +--------- day of month (1 - 31)
    | +----------- hour (0 - 23)
    +------------- min (0 - 59)


    Bye,
    Bruno

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    # then your comment.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136
    Logic answer. Indeed it works.
    Thanks.

    Note : it seems this is not indicated in the man crontab.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Its quite universal in *nix configuration files...
    So you might not find it in manual pages
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

Posting Permissions

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