[vlc] streaming on tcp

Warren Young warren at etr-usa.com
Wed Mar 5 03:09:30 CET 2008


luzyano silux wrote:
>  
> Dows anybody of you has a script which can run vlc as a daemon and store 
> the PID in order to restart, stop or start the vlc application?

If you start a program in the background from the shell, $! is the new 
process's ID.  You can keep it somewhere (/var/run is popular for this) 
so the stop or restart steps can access it.

> It is annoying to kill each process manually and then restart them. 
> Specially when you are running multiple instances of vlc. 

The basic idea above only works for a single PID, but if you have some 
way of knowing which particular process you want to stop or restart, you 
can use that as a lookup into some table of PIDs.



More information about the vlc mailing list