Hi, I couldn't ever get it to work like I wanted. I ended up getting rid of the script and just looping it using a ticker with pkill -2 play. It's too bad I can't name play something else when I call it for music though, because this kills all instances of play I think and all I wanna do is kill the music. Thanks Storm -- Vinux Publicity Coordinator: http://www.vinuxproject.org/ Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ Follow me on Twitter: http://www.twitter.com/stormdragon2976 "Fell in a river of illusion And apathy" Godsmack - Realign On Sun, 2012-08-05 at 20:33 -0400, Kyle wrote: > I could be wrong, but it looks like your script is killing itself. > > pkill -2 $(basename $0) > > will most likely send the interrupt signal to the script itself rather than > to the child sox process. Try hard coding the process name for now > > pkill -2 play > > and see what happens. It will kill all processes named play owned by the > calling user, but it shouldn't kill itself or tintin++. > ~Kyle > Tips and tricks to make Linux work for you are at: > http://www.stormdragon.us/ > To post messages to the list send mail to: > accessiblelinux@xxxxxxxxxxxxx > Change your subscription or the way you receive mail at: > //www.freelists.org/list/accessiblelinux > The List's archives are located at: > //www.freelists.org/archive/accessiblelinux > Learn the Linux command line: > http://en.flossmanuals.net/gnulinux