0
isan98

play video for every five minutes in orange pi one

Recommended Posts

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 by isan98

Share this post


Link to post
Share on other sites
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

 

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
7 minutes ago, guidol said:

does the command work - without cron - from the commandline?

yes /usr/bin/vlc  /home/orangepi/video.mp4 work fine

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0