#!/bin/sh

# get rid of the cursor so we don't see it when videos are running
setterm -cursor off

# set here the path to the directory containing your videos
VIDEOPATH="/home/ryudasan/dataku/orang" 

# you can normally leave this alone
SERVICE="7071"

# now for our infinite loop!
while true; do
        if ps ax | grep -v grep | grep $SERVICE > /dev/null
        then
        sleep 3;
else
        for entry in $VIDEOPATH/*
        do
                cd /home/sindu/dataku/orang
                ./streamX11 > /dev/null
                sleep 3
        done
fi
done
