How to load crontab from a file

Home Questions How to load crontab from a file

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Thushara Muralidharan 2 years, 2 months ago.

  • Author
    Posts
  • #6666 Reply

    admin
    Keymaster
    Offline
    Topics: 65
    Replies: 65

    I have some more than 400+ scripts to run in scheduled time. So I have added all the job entries in a file.
    Anyone please guide me to load this cronfile to the crontab…

  • #6750 Reply

    Thushara Muralidharan
    Participant
    Offline
    Topics: 12
    Replies: 10
    crontab filename

    This is the simplest way to add the cron file entry to the crontab. For example, if you added all the cron entries in a file named cron_file.txt, just save the file and execute the below comamnd. Make sure you are in the directory where the cron_file.txt file is present.

    crontab cron_file.txt

    To directly edit the crontab, refer http://spytm.com/questions/topic/how-to-add-job-to-the-crontab/

Reply To: How to load crontab from a file

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Your information: