Bamshad
Bamshad

Reputation: 135

open and close vlc player automatically

I would like to open and close the vlc player automatically in a Lubuntu VMware. I have tried a shell script code like:

   vlc rtmp:/<ip addres>/code
   sleep(5)
   exit 0 or vlc:quit

It opens the vlc player and start it but does not go for the second line and therefore, can not close it.

So, please let me know how can I fix it.

Upvotes: 2

Views: 112

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 207748

Just writing up my comment. You can use:

timeout 5 vlc rtmp:/<ip addres>/code

Upvotes: 2

Related Questions