1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2024-11-22 07:45:39 +00:00

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

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
```