Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, Can some one tell me how can set my cron to execute 11:00 pm of every day?...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42

    Defining Cron to execute everyday at midnight



    Hi All,

    Can some one tell me how can set my cron to execute 11:00 pm of every day?

  2. #2
    Linux User peteh's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    333
    You need the following code
    Code:
    crontab -e
    This opens the file to edit.
    Then
    Code:
    00 23 * * * /your folder/your file to execute
    Check this site for full info.
    Pete

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    3
    edit the /etc/crontab

    vi /etc/crontab
    00 23 * * * root /sbin/shutdown -h now

    in place /sbin/shutdown -h now ,just put the command or shell script that u want to run.

  4. #4
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    Great Thanks all !!!

Posting Permissions

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