[streaming] Re: Controlling VLC
Richard Ham
rich-lists at edit-co.com
Tue Sep 30 09:36:24 CEST 2003
> In bash, I just do:
>
> myprocess >& logerrs &
> echo $! > /var/run/myprocess.pid
>
> were $! is the pid of the just backgrounded process
> $$ is the pid of the current process
> Perl allows $PID as a synonym for $$
Bill,
What I was wanting to do was talk to vlc so I could give the "quit"
command, and tidily shut down the streaming, rather than using a
sigterm or such command. What I've noticed is that if you background
vlc using '&' when you have a shell script without a controlling vty,
it may do some odd things, like print to stdout, figure it has no
controlling terminal, and react as if you gave it a sigstop. This
doesn't help recording a live stream ;)
The perl script that was sent by Stefan is currently having dup2, pipe
and so on added so I can talk to vlc during its life span, and issue
commands and recieve the results. When I get some more time after
dinner, I'll get into it and see what happens......
Regards,
Richard
--
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the streaming
mailing list