
It sounds like the script is never getting to the point of executing the kill command, because it's waiting for xmms to end and hand control back. If you close xmms manually after executing the script, you'll probably get a "no process killed" error, and then the script will end. The script code would help, of course (: Any particular reason you're using kill -9, btw? Wouldn't a normal sigterm do the job? And isn't it easier to use killall xmms, rather than funky things with kill? Regards, Bnonn On Mon, 2006-05-22 at 17:43 +1000, Leslie Katz wrote:
I have an icon for xmms on my desktop. I click on the icon; xmms opens in its own little window. I open a terminal. I type in it kill -9 $(pidof xmms) and press Enter. The xmms window closes.
I have a bash script. A line in it runs xmms, at which point xmms's little window opens and converts a .wma file to a .wav file. The next line in the script says kill -9 $(pidof xmms), but it doesn't work to close the xmms window. That window stays open until I click on the close box in the top right of the window.
Why doesn't the kill command work in the second case when it works in the first?
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug