DominikHoffmann
Registered
Here is my root's crontab (see my other post on why I have that stuff in there):
Interestingly, the first line fails to produce the desired output, and the second produces none at all. What am I missing?
Dominik Hoffmann
Code:
* * * * * echo `date` -- `ping -c 1 xx.xx.xx.34 | sed -n -e 's/.*0\%.*/up/' -e 's/.*100\%.*/down/' -e "/up/p" -e "/down/p"` >> /var/log/uptime.log
* * * * * ping xx.xx.xx.34 >> /var/log/ping.log
Dominik Hoffmann