it doesn't work that way.
amarok is a gui application.
if you want to run some media without any interface, try mplayer.
btw, the *.ogg or *.flv (variable expansion) might not work with some players.
you might have to use a bash oneliner like this:
Code:
for i in *ogg ; do ogg123 "$i" ; done
that would run all ogg files in the directory one after the other.