Catch worker output
Closed this issue · 1 comments
christophlehmann commented
An option --log-output
to catch and log output of cronjob would be nice.
root@835e4577c072:/# su -s /bin/bash www-data -c './go-crond-64-linux-dynamic /etc/crontab --allow-unprivileged --no-auto'
go-crond: Starting go-crond version 0.6.1
go-crond: WARNING: go-crond is NOT running as root, disabling user switching
go-crond: add: spec:'* * * * *' usr:www-data cmd:'/bin/echo hello >> /var/log/cron.log'
go-crond: add: spec:'* * * * *' usr:www-data cmd:'date'
go-crond: Start runner with 2 jobs
In this example the output of the date command should be written to stdout
kumy commented
@WadeBarnes Thanks to have published a build including a fix for this 👍