README: update the example

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-05 16:51:40 -05:00
parent dc39b5bdc7
commit 2c411eb5cc
Signed by: vbatts
GPG Key ID: 10937E57733F1362
1 changed files with 7 additions and 1 deletions

View File

@ -11,8 +11,14 @@ Ultimately ending up at http://www.slackware.com/~vbatts/feeds/
go get github.com/vbatts/sl-feeds
```
Create a configuration from the sample
```bash
sl-feeds --sample-config > ~/.sl-feeds.toml
```
crontab like:
```
0 */2 * * * ~/bin/sl-feeds -q || echo "$(date): failed to poll changelogs" | mail -s "[slackrss] changelog_http_poll failed $(date +%D)" me@example.com
0 */2 * * * ~/bin/sl-feeds -c ~/.sl-feeds.toml -q || echo "$(date): failed to poll changelogs" | mail -s "[slackrss] changelog_http_poll failed $(date +%D)" me@example.com
```