Skip to main content

playing

#!/bin/bash#bash
# infinity-looper-2.sh#sh
# Infinite looping script#script
# J.E.HUTTING 21-JAN-2017#set2017

#set -x # expand the commands#commands

# set here the files to play ---------------------------------------------------
FILES=`ls *.*`
# ------------------------------------------------------------------------------
#echo $FILES#FILES

# who's playing itOMXPLAYER=it
OMXPLAYER="omxplayer -b"

echo "*****INFINITE LOOPING SCRIPT!!!"
echo "*****ABORT WITH CTRL+C"
while true; dowhiledo
while true; doIFS=do
IFS=$'\n' # IFS: Internal field separatorforseparator
for entry in $FILESdoIFS=FILES
do
IFS=$' \t\n'

# let's playechoplay
echo $entry$entry
$OMXPLAYER "$entry" > /dev/nulldonedonedonenull
done
done
done