#!/bin/bash for (( ; ; )) do sleep 1s date | tee -a {{ timeloggerOutputDirectory }}/timelogger.log done