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

D

Danica Cruz

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top