Forum: Ruby `(bacticks) returns "Bad File Descriptor" error with Apache

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0f1965c0cb4175181911325808679abd?d=identicon&s=25 Danica Cruz (daniellesteel)
on 2009-01-16 04:37
Hello,

I wanted to run a command line program from Ruby. I used `(backticks) to
do this. It was successful if I run the program using Webrick but if I
run it using Apache 2.2.8, a "Bad File Descriptor" error is returned.

I needed to run `svn list` command to get the names of the files in a
target repository located in another machine. Using `(backticks) to run
the command gives me the output that i need.

This is my code:
`svn list #{path}`
#path is the location of the SVN repository in another machine

Does anybody have any idea why `(backticks) return this kind of error in
Apache?

I have already used some of the suggested ways in this site:
http://tech.natemurray.com/2007/03/ruby-shell-commands.html


Please help.
Thank you very much.
This topic is locked and can not be replied to.