Search code examples
videoubuntu-14.04playbackschedule

How to play a video every hour in ubuntu


I have a video of 5min duration in my home folder in ubuntu. The video has to be played every hour in the foreground. How can I do it?


Solution

  • Here I think the simplest solution. Type in terminal: crontab -e and choice editor (if this is the first launch). And insert it:

    0 * * * * export DISPLAY=:0 && vlc /home/user/video_name.mp4
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    

    vlc - my favorite videoplayer)) You may use other)) Good luck! Read more about cron - click