After some tinkering I have found the /answer/
When I said via command line I actually meant via putty from a windows PC. I now realise this is an entirely different thing, and was the root of the issue.
Running the commands (and indeed the bash files) from the 'Terminal' window worked fine.
I then ran into an issue with launching the scripts from crontab, but this was resolved by using DISLAY=:0.0 before the vlc command.
Sorry for leading everyone up the garden path with this, and thanks for the help.
When I googled this and other error messages I had got there were a lot of similar questions (none with answers I could make use of), so hopefully others that are doing the same as me will find this and realise that tty is no the same as Terminal!
When I said via command line I actually meant via putty from a windows PC. I now realise this is an entirely different thing, and was the root of the issue.
Running the commands (and indeed the bash files) from the 'Terminal' window worked fine.
I then ran into an issue with launching the scripts from crontab, but this was resolved by using DISLAY=:0.0 before the vlc command.
Sorry for leading everyone up the garden path with this, and thanks for the help.
When I googled this and other error messages I had got there were a lot of similar questions (none with answers I could make use of), so hopefully others that are doing the same as me will find this and realise that tty is no the same as Terminal!
Statistics: Posted by salawinder — Fri May 23, 2025 9:00 pm