4 ms·
Oh, so that's something like timeout (as distributed in coreutils on GNU/Linux systems, and according to man pages available on the web also on *BSD etc)? $
by nicolast 15y ago
Oh, so that's something like timeout (as distributed in coreutils on GNU/Linux systems, and according to man pages available on the web also on *BSD etc)?
$ timeout -s 9 5s md5sum /dev/zero
Killed
- badboy 15y agoseriously, I don't get it why I should use another big node script when there is timeout
- felixge 15y agoAgreed. I usually end up doing the opposite in node, whenever there is an existing *nix tool for a job, I'll spawn that from my node process rather than reimplementing it. Node's child process machinery is the best I've seen so far. (Disclaimer: I'm a node contributor)