#!/bin/sh # Fetch news { if ping -c 1 -w 5 news.free.fr then pgrep '^slrnpull$' \ || slrnpull -d "$HOME/.slrnpull" --logfile slrnpull.log fi } >/dev/null 2>&1