Timeout duration on linux

commandkilltimeout

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?

Best Answer

You could always try doing 310 minutes instead.