Skip to content

Commit

Permalink
Better file output.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadManWalkingTO committed Mar 5, 2018
1 parent 4ccdb1b commit b052eb2
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions ETHminerWatchDogDmW.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#========== PreStart ==========

#Set version info
V=1.8.7
V=1.8.9

#========== Start ==========

Expand Down Expand Up @@ -49,7 +49,6 @@ loopnum=$((0))
FileOut=RunTimes.log
echo >> $FileOut
echo 'ETHminerWatchDogDmW Version '$V >> $FileOut
echo >> $FileOut

#========== Run Program ==========

Expand All @@ -73,9 +72,7 @@ echo #

#========== File Output ==========

echo $pISOdate >> $FileOut
echo ETHminerWatchDogDmW has run $loopnum times. >> $FileOut
echo >> $FileOut
echo $pISOdate ETHminerWatchDogDmW has run $loopnum times. >> $FileOut

#========== Execution Code ==========

Expand Down Expand Up @@ -104,13 +101,8 @@ echo

#========== Error File Output ==========

echo $pISOdate >> $FileOut
echo 'ETHminerWatchDogDmW has run '$loopnum' times.' >> $FileOut
echo 'System Restart Required.' >> $FileOut
echo >> $FileOut
echo >> $FileOut
echo >> $FileOut
echo 'Reboot Now ('$pISOdate')' >> $FileOut
echo $pISOdate' ETHminerWatchDogDmW has run '$loopnum' times.' >> $FileOut
echo 'System Restart Required. Reboot Now ('$pISOdate').' >> $FileOut
echo >> $FileOut

#========== System Reboot ==========
Expand Down

0 comments on commit b052eb2

Please sign in to comment.