How can we run the comand ” while true; do date; sleep $TIME_FREQ;done”

wguan:
how can we run the comand ” while true; do date; sleep $TIME_FREQ;done”

lalit mohan:
command: [” while true; do date; sleep $TIME_FREQ;done”]

wguan:
thanks very much, this can’t work, after search online, I find a command: [‘/bin/sh’, ‘-c’, ‘while true; do date; sleep $TIME_FREQ;done’], which can work well

unnivkn:

unnivkn:
Refer here: https://kubernetes.io/docs/concepts/cluster-administration/logging/