Load crontab from a...
 

Load crontab from a file  


admin
Posts: 93
Admin
(@mjv119gmail-com)
Member
Joined: 5 years ago

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…

1 Reply
Alan
Posts: 35
 Alan
(@alan)
Eminent Member
Joined: 3 months ago
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 https://www.spytm.com/forum/unix-linux/add-job-to-the-crontab/

Reply

Leave a reply


 
Preview 0 Revisions Saved
Share: