How to set up cronjobs on a linux-server

Last modified date

In this article I will quickly show you how to set up a cronjob on a linux-server.

Start by logging in to your server using SSH.

When logged in type:

crontab -e

which will open the crontab file in your editor.

Now you can add one cronjob for each line with the syntax (example):

* * * * * /usr/bin/curl 'http://someurl' > /dev/null 2>&1

‘>/dev/null 2>&1’ makes sure that the output of the command is deleted.

Save it and you are done 🙂

Daniel Stryhn