Bonsoir j’ai un script playlist pour mettre plusieurs videos/musiques en file d’attente, seulement quand j’ai 50 fichiers et que je veux tout arreter, la commande CTRL + C peut s’averer un peu longue, ça saute les fichiers un par un donc pas tres pratique si il faut le faire 50 fois. Est-ce qu’il y a une autre commande ? ou dois-je modifier mon script ? Merci
PLAYER="omxplayer -b -o hdmi"
PLAYLIST="play.pls"
#Play arguments on command line if they exist
if [ $# -ne 0 ]
then
for file
do
$PLAYER "$file"
done
exit
fi
#Play the playlist if it exists
if [ -e "$PLAYLIST" ]
then
IFS=$'\012'
for file in $(cat "$PLAYLIST")
do
$PLAYER "$file"
done
Play the directory structure otherwise
else
for file in *
do
$PLAYER "$file"
done
fi