Questions tagged [timeout]

A command which runs a specified command for a given time, and then terminates it.

See http://man7.org/linux/man-pages/man1/timeout.1.html

203 questions
2
votes
0 answers

Command for Idle timout

timeout is nice for killing a command that does not complete within n seconds. Is there a similar command to kill a command that has not printed anything on stdout for n seconds (and which therefore is probably stuck)? Edit: socat -T120…
Ole Tange
  • 35,514
1
vote
3 answers

how to display command output on terminal using timeout

if i do dd if=/dev/zero of=/dev/null it show the results on terminal. but i want to run this command for a specific period of time and show the results. for example, i tried timeout 10s dd if=/dev/zero of=/dev/nul but i get no stdout / stderr on…
Boris L
  • 11
  • 3
1
vote
1 answer

timeout command and pipe - order of precedence

I need to test receipt of TCP data. I may not use iperf. The requirements are saying that I should create a TCP server to which will someone will send random data. I need to count the number of bytes received. I have been told to use the following:…
0
votes
1 answer

Execute command for x seconds?

Possible Duplicate: Run a command for a specified time and then abort if time exceeds Is there a command which allows me to execute another command for at most x seconds? Imagined example: runonlyxseconds -s 5
mark
  • 163
0
votes
1 answer

run a programm with timeout sending multiple signals in different times

i need to run a programm with timeout with multiple time limits and different signals for the limits. for example: run nano with timeout sending SIGTERM after 5s and after 10s SIGKILL
Qbongo
  • 127