I have seen the same gap with Python as well.skitchy wrote:I should add that I used Brianpickfords script, not the Python one.
Try "/home/pi/test/test.mp4" with the leading "/".nfendall wrote:#!/bin/sh
while true; do
if ps ax | grep -v grep | grep $SERVICE > /dev/null
echo "runing" # sleep 1
omxplayer -o hdmi home/pi/test/test.mp4 &
the file is saved as a .sh and I am running this from terminal using command
Check for the "do" statement in the beginning.rottydean wrote:I would like to use this little script but it keeps coming back with errors:
line10: syntax error near unexpected token `done'
line 10: `done'
cant get my head around it!
i can run this line on its own omxplayer -o hdmi /home/pi/1.mp4 &
Do you pass the file name to the script?arti0504 wrote:When I write in command line:
omxplayer -o hdmi /home/1.mp4
open movie good. When I want use loop script, I have only:
Users browsing this forum: No registered users and 17 guests