isan98 Posted April 16, 2019 Share Posted April 16, 2019 (edited) I want to play video on my orange pi one (armbian jessie OS) for every 5 minutes. I use crontab -e And added */5 * * * * orangepi /usr/bin/vlc /home/orangepi/video.mp4 In the last line of file .but it isn't working ,so how can play video for every five minutes? Edited April 16, 2019 by isan98 Link to comment Share on other sites More sharing options...
martinayotte Posted April 16, 2019 Share Posted April 16, 2019 4 hours ago, isan98 said: In the last line of file .but it isn't working "orangepi" is not a command or script ... Your crontab should look like : */5 * * * * /usr/bin/vlc /home/orangepi/video.mp4 Link to comment Share on other sites More sharing options...
isan98 Posted April 17, 2019 Author Share Posted April 17, 2019 15 hours ago, martinayotte said: "orangepi" is not a command or script ... Your crontab should look like : */5 * * * * /usr/bin/vlc /home/orangepi/video.mp4 I edit it but still it is not working! Link to comment Share on other sites More sharing options...
guidol Posted April 17, 2019 Share Posted April 17, 2019 does the command work - without cron - from the commandline? Link to comment Share on other sites More sharing options...
isan98 Posted April 17, 2019 Author Share Posted April 17, 2019 7 minutes ago, guidol said: does the command work - without cron - from the commandline? yes /usr/bin/vlc /home/orangepi/video.mp4 work fine Link to comment Share on other sites More sharing options...
arox Posted April 17, 2019 Share Posted April 17, 2019 try : DISPLAY=:0 /usr/bin/vlc /home/orangepi/video.mp4 Link to comment Share on other sites More sharing options...
guidol Posted April 17, 2019 Share Posted April 17, 2019 sometimes - I got this here - it does help to put the command in .sh-shell script give chmod *.sh 755 and put the script as command in the crontab. maybe in the first line of the script the # /bin/bash Link to comment Share on other sites More sharing options...
Recommended Posts