isan98 Posted April 16, 2019 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
martinayotte Posted April 16, 2019 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
isan98 Posted April 17, 2019 Author 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!
guidol Posted April 17, 2019 Posted April 17, 2019 does the command work - without cron - from the commandline?
isan98 Posted April 17, 2019 Author 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
arox Posted April 17, 2019 Posted April 17, 2019 try : DISPLAY=:0 /usr/bin/vlc /home/orangepi/video.mp4
guidol Posted April 17, 2019 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
Recommended Posts