Guest User

Untitled

a guest
Mar 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. mplayer -loop 0 -rootwin -ao null -noconsolecontrols -fs VIDEOPATH
  2.  
  3. #!/bin/sh
  4.  
  5. while true; do
  6. ## launch mplayer in the background
  7. mplayer -loop 0 -rootwin -ao null -noconsolecontrols -fs VIDEOPATH &
  8. ## wait for 15 seconds
  9. sleep 15
  10. ## kill the 1st backgrounded job of this subshell
  11. kill %1
  12. done
Add Comment
Please, Sign In to add comment