You could make a shell script (which I will call sendtime
) like this:
date >> /tmp/log
Make it executable with chmod u+x sendtime
. Then you start it in the background with ./sendtime &
There are ways to make it automatically start up when you start the computer or when you log in. If that was what you wanted, you'll have to wait for somebody more knowledgeable.