I use VLC to stream video to a remote server. Unfortunately, sometimes the connection is lost and I need to kill and restart VLC to make it work again.
The difficulty is that VLC does not return when the error occurs. It prints "error" on the terminal but continues running.
I would like to create a script that starts VLC, monitors its output and kill then restart it when "error" is displayed.
How to do so ?
Thanks