#!/bin/sh log="/work/data/reboot.log" time=`date '+%Y-%m-%d %H:%M:%S '` rm /work/data/log/* #ÇåÀíÈÕÖ¾ echo "$time reboot system" >> $log reboot