[vlc] Kill VLC

Brook Lin gnu.fans at yahoo.com
Wed Mar 11 00:47:25 CET 2009


Thanks for all your replies. And thanks Anthony, I use sh rather than csh, it
works.
Brook

Brook Lin wrote:
> 
> Hi All,
> 
> I am trying to close VLC after capturing the video by the web camera for
> 30sec. 
> I tried the following command in the terminal:
> vlc v4l:// :v4l-vdev="/dev/video" :v4l-adev="/dev/dsp" :v4l-norm=3
> :v4l-frequency=-1 --sout
> '#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="/Desktop/myfile"}}'
> & echo $! >vlc.pid
> kill $(<vlc.pid) &
> 
> The VLC could be killed. However, if I wrote these two command to a csh
> script, and run this script. I got error 'Illegal variable name' and the
> VLC could not be closed successfully.
> #! /bin/csh
> vlc v4l:// :v4l-vdev="/dev/video" :v4l-adev="/dev/dsp" :v4l-norm=3
> :v4l-frequency=-1 --sout
> '#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="/Desktop/myfile"}}'
> & echo $! >vlc.pid
> kill $(<vlc.pid) &
> 
> Could anyone help me with this problem? 
> 
> Appreciated,
> Brook
> 

-- 
View this message in context: http://www.nabble.com/Kill-VLC-tp22426242p22446089.html
Sent from the VLC (VideoLAN) mailing list archive at Nabble.com.




More information about the vlc mailing list