Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
timeout -sKILL "5h 10m" mplayer -dumpstream 82.201.100.23:80/slamfm -dumpfile slamfm.mp3 doesn't work either.. –  Dmbekker Jul 2 '12 at 20:54
add comment

1 Answer 1

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
1  
It's Monday, I think that gives you a free pass. –  Safado Jul 2 '12 at 22:34
add comment

Your Answer

 
discard

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.