Linux – Run shell script at linux boot but only one time per day

linuxshellstartup

  • Run shell script at linux boot (Start up) but only one time per day , How can i do it ?
  • I am using Redhat enterprise linux 5

Best Answer

Put your script in the init.d so that it gets executed at boot.

To make sure that it only gets executed once a day, all you need to do is store the date of the previous execution and compare that to the current date. This is quite simple to do in any script language.