What I'm trying here is to append the timestamp to a text file every minute. This would be useful to tracking time and date of sleeping (for battery life measurement) and for not letting the disk to sleep (major problem with externals while editing video, getting a cup of coffee and waiting 30secs for spin up).
I know it can be done with a simple shell script, but I don't know how (not much previous Unix experience).
This is roughly what I try to do:
Can somebody help me?
I know it can be done with a simple shell script, but I don't know how (not much previous Unix experience).
This is roughly what I try to do:
Code:
get current date (in format yyyyMMdd.hhmmss)
append it (add it to the end) to the file stamp.log in the working directory
exit
Can somebody help me?