Skip to content

Commit

Permalink
Merge pull request ydns#31 from gibsjose/master
Browse files Browse the repository at this point in the history
Adding crontab setup to README
  • Loading branch information
Christian Jurk committed Aug 20, 2015
2 parents 9e4da30 + a97e459 commit c1fe1e5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ First, ensure that your host has [curl](http://curl.haxx.se) installed.
3. Edit the script and update the user and host information to fit your configuration
4. Run the script (either by single call or set up a cronjob to run it periodically)

## Crontab Setup

To run this script every 15 minutes using `crontab`, add the following line to your crontab list:

```bash
*/15 * * * * /path/to/script/updater.sh > /dev/null
```

Although this works on most all implementations of `crontab`, for more portability use this instead:

```bash
0,15,30,45 * * * * /path/to/script/updater.sh > /dev/null
````

**NOTE:** To gain access to the crontab list to edit and add entries, execute `crontab -e` at the terminal

## Further notes

The code is licensed under the GNU Public License, version 3.
Expand Down

0 comments on commit c1fe1e5

Please sign in to comment.