Shell Script : Kill a running process when another process starts
Hi , I was wondering if i could kill an already running process when i start another one.
For example ,
If i run firefox , i want that totem be killed before firefox starts( Because if totem is running , firefox doesnt play any sound ).
How can this be achieved ?
I hope Im clear with my query.