From: Gian Paolo Marra Date: 2002-10-15T00:37:49+09:00 Subject: Re: ruby command expansion Hi Bill! Thank you!! Best regards, gp- William Djaja Tjokroaminata wrote: > 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-