If I run this in terminal it works fine
/Applications/VLC.app/Contents/MacOS/VLC -I rc http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/vpid/bbc_radio_fourfm/format/pls.pls --sout '#standard{mux=raw,access=file{overwrite},dst=/Users/person/Documents/scripts/r4.mp3,display=novideo}' --run-time=1800 --stop-time=1800
But if I run it in Automator (using Run Shell Script) I get this result and it doesn't work:
"VLC media player 2.2.1 Terry Pratchett (Weatherwax)",
"Command Line Interface initialized. Type `help' for help.
",
"> Shutting down.
"
I have messed around with PATH and .bash_profile to no avail. What am I doing wrong?