In linux shell script i have
vlc /some/file/path.mkv &
wait
Now until my background process return wait
call will be blocked. But here i want that until my background process return i want to execute one loop and in that print some data continuous. So when ever my background process return/exit i need to break that loop.
How to do that in shell script?