|
|
2013-08-17
, 14:42
|
|
Posts: 10 |
Thanked: 81 times |
Joined on Nov 2009
@ Espoo
|
#2
|
|
|
2013-08-17
, 15:54
|
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#3
|
kill -9 $i
echo 'killing '"${i}" >> kill.log && kill "${i}"
I have a routine that I user for killing selected tasks:-
for i in `ps aux|grep "vlc" |grep -v grep | awk '{print $1}' ` ; do kill -9 $i doneIf I modify the code in any way to be more selective in killing my vlc task, sometihing like:-
for i in `ps aux|grep "vlc -I dummy --volume 120 http://name:password@localhost:9981/stream/channelid" |grep -v grep | awk '{print $1}' ` ; do kill -9 $i doneAnyone here able to tell me why?
I have changed the code in any number of ways to select just this type of vlc task, using grep "9981*, grep "stream"..... Only grep "vlc" seems to work.
I thought I knew how this code worked, very myserious!