Jump to content

Recommended Posts

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

 

Posted
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!

Posted
7 minutes ago, guidol said:

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

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

Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines