[streaming] Re: Controlling VLC

Bill Eldridge bill at rfa.org
Tue Sep 30 09:28:30 CEST 2003


Richard Ham wrote:

>>Benjamin PRACHT <bigben at via.ecp.fr> writes:
>>    
>>
>>>scripts languages  (such as  perl) allows  to get the  pid of  a
>>>      
>>>
>spawned
>  
>
>>i did something like this this weekend.
>>
>>    
>>
>
>Stunning! Thats spot on for my needs!!!
>
>If thats the quick version, I'd love to see the full script!! (Like an
>artist at work!)
>
>Many thanks,
>
>Richard
>
>  
>
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 $$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20030930/262d405e/attachment.htm 


More information about the streaming mailing list