[vlc] Kill VLC

Brook Lin gnu.fans at yahoo.com
Tue Mar 10 02:25:52 CET 2009


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-tp22426242p22426242.html
Sent from the VLC (VideoLAN) mailing list archive at Nabble.com.




More information about the vlc mailing list