MatthiasKauer / croncoat

A cron job wrapper with better error email reporting and command timeouts.
8 stars 3 forks source link

Capture stdout / stderr of a process that times out #8

Closed MatthiasKauer closed 7 years ago

MatthiasKauer commented 7 years ago

This has been bugging me for the longest time and I finally found a way to make it work. Python3 makes it easy with the timeout parameter in subprocess. Luckily someone has backported that to Python2 as well.