Creating a Script for an Android Tablet
Call Super User ( root access )     

  su    


change 1 second sleeper to 24hours     

 sleep 86400

  sleep 1
  sh /directory to this script/autoscript.sh   
  exit   


Close this script after opening another instance of it.
So all in one script it's 

  su   
  sleep 1
  sh /directory to this script/autoscript.sh    
  exit 


In this example,    

you would need to make this as a text document and save it as autoscript.sh 

Instead of autoscript.txt   

Now open Terminal Emulator and type 

sh storage/sdcard1/autoscript.sh


Terminal will auto start the script !