
Hey Folks, it is on my todo list to make my BIT-test-environment-helper-scripts publishable (is this a word?). For a first shoot I added my quick & dirty timefake script. It's intention is to call a command (CMD) once "each day" (means: multiple times) starting N days in the past. I use that script to create, manipulate and backup via BIT some test files each day (in the past). On 2022-12-05 17:18 BiT dev <python@altfeld-im.de> wrote:
On Thu, 2022-11-24 at 07:43 +0000, c.buhtz@posteo.jp wrote:
faketime -d "12:00" -c crond --restart
My Ubuntu 20.04 does not know the "-d" and "-c" options, do you use another version?
It was just my pseudo code. ;) faketime -f '-7d' /bin/bash -c "CMD" The syntax for the "-f" values is described in the manpage of course. Here it means that the following command is executed with a datetime exactly 7 days in the past from now. Greetings Christian