Kill Stalled Command After One Second – timeout 1 cat

To automatically kill stalled command after one second, put ‘timeout 1′ before the command.

$  timeout 1 cat

By itself, ‘cat’ would wait for input forever. But here, timeout kills it after one second.

Timeout is practical command to bypass problems with misbehaving binaries or complicated programs where you don’t want to fiddle with source code.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Recent Posts

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects