How to use Ruby variables in backticks? By Alvin Lai November 19th, 2009 cmd = “ls /home” hosts = `#{cmd}`