Can't get 2nd line of script to run when 1st one finishes
gwirth79 at gmail.com
Wed Jul 23 16:03:30 PDT 2008
chris at seberino.org wrote:
> The following script runs an xmms2 client called esperanza. The client
> automatically starts the xmms2 daemon but doesn't kill the daemon when it dies.
> The idea is to run this script when I want to listen to music so that it will
> kill the server (xmms2d) when I kill esperanza.
> Running this script *WORKS* on one laptop but for the life of me I can't figure
> out why it doesn't work on another similar Thinkpad with same Ubuntu version.
> When I kill esperanza the second line doesn't seem to run because daemon keeps
> playing the mp3 which is annoying.
> Any ideas?
> killall xmms2d
What happens when you run the script pieces by hand?
Who owns the script? What user name shows up for the daemon? You aren't
allowed to kill other peoples processes unless you are root.
Are the xmmms2d servers identical? Maybe you need to send a different
signal to the daemon instead of the default.
More information about the KPLUG-List