Category: Linux Terminal
Added: 20th of October 2020
Viewed: 399 times
In Linux you can automate tasks by creating a cronjobs. This can be especially helpful if for example you wanted to created a backup of your database everyday, calling a bash or .php script.
Getting your head around Cronjobs can be confusing at the start, so I will attempt to explain how they work with some really simple examples.
There are two parts to a cronjob. The first part is telling the system when you want to run the cron job, and the second part is telling the system what you want it to do using linux commands.
Part 1: Telling the system when to run your cronjob
This is set out using the following parameters
m=Minute
h=Hour
dom=Day of Month
mon=Month
dow=Day of Week
Run a cronjob at 10am on the 25th of December
Other Tips & Tutorials
Linux Terminal
Kill multiple processes using the pkill command in LinuxPosted: 5th of January 2021
Views: 223
Linux Terminal
Display free memory using the terminal in LinuxPosted: 17th of December 2020
Views: 272
Linux Terminal
Using mlocate to find files by name, extension using the terminal in LinuxPosted: 27th of November 2020
Views: 248
Linux Terminal
Capture screenshots of websites using cutycapt in different formats using the terminal in Ubuntu and Ubuntu based distributionsPosted: 15th of November 2020
Views: 335
Linux Terminal
Create a new folder and file using the mkdir and touch commands using the terminal in LinuxPosted: 16th of August 2020
Views: 422
Linux Terminal
Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminalPosted: 3rd of August 2020
Views: 664
Linux Terminal
How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminalPosted: 13th of November 2019
Views: 1144