KDr2 wrote: > cmd= isinstance(cmd,str) and c.replace('${ADDR}',ip) or cmd Perlish, but I like that. :-) Regards, mk