simple script to rebot router ?

i need simple script to reboot router based on log entries
basicly i need to reboot router when this log entry apend: 00:01:15 async,ppp,info ppp-out1: could not determine remote address

tnx in advance

Here is an example how to detect log entries:
http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Detect_new_log_entry

and to reboot router just add “/system reboot” to your script.