From: Brian Candler Date: 2009-08-18T19:34:00+09:00 Subject: Re: Can't execute shell commands in CGI Luckystr Luckystr wrote: > It is necessary to execute linux command in CGI(apache) > [code]def cmd(com) > system("#{com}>log.log") > end > cmd("pwd")[/code] > There isn't errors but log.log is empty Try: system("pwd >/tmp/log.log") -- Posted via http://www.ruby-forum.com/.