Forum: Ruby on Rails Executing System calls under 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.
Df809220e0bdddc3d1e92e4c31111d18?d=identicon&s=25 Chris Miller (chrism71)
on 2005-12-31 19:25
Our Rails App executes a system call:
system("app/bin/fitsfetch.sh", url, dir, item, status_file)

It's a simple bash script to download a URL and move it to
a new directory while changing the filename (also reporting
a status from a simple status file).

It works fine under Webrick, but fails when we run under
Apache2. I'm guessing it has something to do with the
permissions or some other Apache2 security setting. I'm
not an Apache2 expert. We've tried the obvious things
(permissions/ownership/group of the script, ditto on
the directory, etc). But no luck.

Has anyone been able to call shell scripts via Ruby when
running a Rails app under Apache?

Chris
This topic is locked and can not be replied to.