timeout duration on linux

Posted by user1319451 on Server Fault See other posts from Server Fault or by user1319451
Published on 2012-07-02T20:53:38Z Indexed on 2012/07/02 21:17 UTC
Read the original article Hit count: 202

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about timeout

Related posts about kill