I have a lot of crontask on my linux servers for our applications. But I don't find any way to know when a task end, and how long it run. Must I add a soft like time command to log this? Is there any way to configure cron to do this? I have for example a script in /etc/cron.daily which take too much time, but I can't figure which one!
Regards,
Cédric
man cron
You should see something like
To used the option you can check out /etc/default/cron
At least in Debian it has a comment like this:
After making changes to the config file you would need to restart Cron: