2

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 http://82.201.100.23:80/slamfm -dumpfile slamfm.mp3

runs fine. But when I try

timeout -sKILL 5h10m mplayer -dumpstream http://82.201.100.23:80/slamfm -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?

David
  • 23
  • 4
  • timeout -sKILL "5h 10m" mplayer -dumpstream http://82.201.100.23:80/slamfm -dumpfile slamfm.mp3 doesn't work either.. – David Jul 02 '12 at 20:54

1 Answers1

6

You could always try doing 310 minutes instead.

Safado
  • 4,786
  • 7
  • 37
  • 54