I need to figure out how to automatically insert a date and time of execution of a certain bash script file, into a txt file. Lets just say I have a bash script named backup.sh, and each time backup.sh executes, it would automatically create a txt file named Execution.txt, and within that txt file, the date and time of the execution of backup.sh would be written there. Does anyone have ideas to do this? I have Googled for some answers, but found nothing. Any help would be appreciated! Thanks in advance.