From: William Djaja Tjokroaminata Date: 2002-10-15T00:37:46+09:00 Subject: Re: ruby command expansion Hi, You can use the ` (backquote), and it is similar as replacing the value of a variable in a string: cmd = '/bin/ls' output = `#{cmd}` puts output Regards, Bill ========================================================================== Gian Paolo Marra wrote: > Hello, > is there a possibility in ruby to execute a system command by variable? > this code don't work... > cmd='/bin/ls' > output=%(cmd) > gp-