Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run a command for 5 hours and 10 minuts.

I found out how to run it for 5 hours but I'm unable to run it for 5 hours and 10 minuts..

timeout -sKILL 5h mplayer -dumpstream -dumpfile slamfm.mp3

runs fine. But when I try

timeout -sKILL 5h10m mplayer -dumpstream -dumpfile slamfm.mp3

I get this error

timeout: invalid time interval `5h10m'

Does anyone know a way to run this command for 5 hours and 10 minuts and then kill it?

share|improve this question
timeout -sKILL "5h 10m" mplayer -dumpstream -dumpfile slamfm.mp3 doesn't work either.. – Dmbekker Jul 2 '12 at 20:54
up vote 6 down vote accepted

You could always try doing 310 minutes instead.

share|improve this answer
I feel stupid now. Why didn't I think about that? Thanks man! – Dmbekker Jul 2 '12 at 21:33
It's Monday, I think that gives you a free pass. – Safado Jul 2 '12 at 22:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.