[scl.org] Enabe Ruby193 in postfix context

Gabriele Pohl contact at dipohl.de
Sun Sep 18 11:31:59 UTC 2016


On Wed, 14 Sep 2016 08:07:12 +0100
Dominic Cleal <dominic at cleal.org> wrote:

> On 13/09/16 16:35, Gabriele Pohl wrote:
> > 
> > On Mon, 12 Sep 2016 10:19:21 +0200
> > Petr Pisar <ppisar at redhat.com> wrote:
> >   
> >> > I recommend, create a simple wrapper around your ruby script that will
> >> > siply execute the real script in the enabled enviroment, like:
> >> > 
> >> > #!/bin/sh
> >> > scl enable ruby193 /the/real/script  
> > I tried this, but it doesn't work either:
> > 
> > Created a wrapper script "schleuder-wrapper.sh" with following content:
> > 
> > #!/bin/sh
> > scl enable ruby193 /opt/rh/ruby193/root/usr/local/bin/schleuder listname at hostname  
> 
> The command must be quoted:
> 
> scl enable ruby193 "/opt/rh/ruby193/root/usr/local/bin/schleuder
> listname at hostname"

That works as it seems, although I get another
error now, but that is likely a problem in my
current setup of Schleuder:

Command died with status 1: "/usr/local/sbin/schleuder-wrapper.sh". Command output: A serious error occurred, please notify the administrators of this list or server!

First I thought, that piping of the mail hadn't worked,
but I tested with a cat command to file in the script,
saw that it works in general.

fyi & thanks for the hint!

Gabriele




More information about the SCLorg mailing list