From: Luckystr Luckystr Date: 2009-08-19T05:40:08+09:00 Subject: Re: Can't execute shell commands in CGI Brian Candler wrote: > 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") thank all, and thank you, Brian Candler. /tmp/log.log has pwd -- Posted via http://www.ruby-forum.com/.