Hello list,<div><br></div><div>I have an issue that I have posted on the RPi forum, but maybe there is some one here that can spot my mistake:</div><div><br></div><div><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">a hoi hoi,</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">I have set up Raspbian and omxplayer from source. This is working well and is doing a great job.</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">I want to be able to play a single video file in an endless loop on my stand at the farnbrough air show next week, but my lack of bash skills id defeating me. I hope some on can spot the error and help me out ...</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">#!/bin/sh</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">SERVICE=&#39;omxplayer&#39;</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">while true; do</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">if ps ax | grep -v grep | grep $SERVICE &gt; /dev/null</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">then</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">echo &quot;runing&quot; # sleep 1</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">else</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">omxplayer -o hdmi video.mp4 United\ Springs\ Master.mp4 &amp;</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">sleep 180</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">fi</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">done</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">This script and a few variants of it either return &quot;Have a nice day </span><img src="http://www.raspberrypi.org/phpBB3/images/smilies/icon_e_wink.gif" alt=";)" title="Wink" style="max-width: 100%; height: auto; border: 0px; max-height: 15em; margin: 0px; clear: both; color: rgb(51, 51, 51); font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(252, 252, 252); "><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">&quot; or play the video once through then cycle the same message</span><br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">
<br style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)"><span style="color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:19px;background-color:rgb(252,252,252)">Grateful for any pointers</span>
</div>