4 ms·
Nice for learning. For practical use I would prefer https://www.man7.org/linux/man-pages/man1/timeout.1.html https://www.man7.org/linux/man-pages/man1/timeout.
by usr1106 2y ago
Nice for learning.
For practical use I would prefer https://www.man7.org/linux/man-pages/man1/timeout.1.html https://www.man7.org/linux/man-pages/man1/timeout.1.html
- ykonstant 2y agoWhat are the benefits of one over the other?
- usr1106 2y agoYour script does not handle stderr, stdout, and SIGINT correctly, probably more. With enough work at least some of them could be fixed, maybe even all. But why reinventing the wheel if timeout is contained in coreutils and available on nearly every Linux machine?