#!/bin/sh echo "start MerdiaServer" while true do ./MediaServer date="`date '+%Y-%m-%d %H:%M:%S'`" echo "MediaServer_error $date" >>./network_error.log sleep 2 done