From: Bertram Scharpf Date: 2009-08-18T11:41:59+09:00 Subject: Re: Can't execute shell commands in CGI Hi, Am Dienstag, 18. Aug 2009, 05:46:54 +0900 schrieb Luckystr Luckystr: > 7stud -- wrote: > > Luckystr Luckystr wrote: > >> It is necessary to execute linux command in CGI(apache) > >> def cmd(com) > >> system("#{com}>log.log") > >> end > >> cmd("pwd") > > > > and see what the last few lines say. It may say something like: > > errorlog: > sh: log.log: Permission denied Redirect $stderrr, too. Direct it into /tmp to avoid access rights problems while you're testing. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de