Adding time stamp to log file in bash script
Note you are outputting to Debug.log, while you should indicate the full path of that file: echo “Time: $(date)” >> /path/to/Debug.log. In general, whenever you want to add timestamp to a log file, you can use: echo “Time: $(date). Some error info.” >> /path/to/your/file.log date will expand to something like Fri Sep 9 12:18:02 CEST … Read more