run './playlist.sh -g' to generate the playlist (in /tmp). When that's done it will automatically start playing songs. When you want to listen to it again just run './playlist.sh'. If you want to generate a shuffled playlist, run './playlist.sh -g -r'. That's all there is to it!