It's exactly what I was looking for. I was confused by system, qx, backticks et al :) Anyway, thanks to the three of you for your help I got something from each answer !
BTW I also managed to achieve what I wanted with system - albeit with more code.
Thanks again
Alan