find "/home/pi/Music" -type f -iname "*.mp3" -o -iname "*.ogg" -o -iname "*.wma" > "/home/pi/Music/playlist"
...which works in a terminal, I can successfully use Shell like this in Gambas:-
Shell "find /home/pi/Music -type f -iname *.mp3 -o -iname *.ogg -o -iname *.wma > /home/pi/Music/playlist"
...but I can't get the syntax right using Exec. This works:-Exec ["find", "/home/pi/Music", "-type", "f", "-iname", "*.mp3", "-o", "-name", "*.ogg", "-o", "-name", "*.wma"] to strTemp
...but changing the last bit to:-"*wma",">", "/home/pi/Music/playlist"]
...gives me an error: "find: paths must precede expression: >"
So it looks like I have a problem with the re-direct operator ">"
Can someone put me out of my misery?