From: Hans de Graaff <graaff@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Postgres gem not found by cron job
Date: Fri, 13 Aug 2010 20:36:05 +0200 [thread overview]
Message-ID: <ltfgj7-n66.ln1@graaff.xs4all.nl> (raw)
In-Reply-To: 4C62FAE5.9030601@orlitzky.com
On Wed, 11 Aug 2010 15:32:53 -0400, Michael Orlitzky wrote:
> Thanks for the tip. The cron environment was missing
> "RUBYOPT=-rauto_gem" -- adding it fixed the problem.
>
> Dark magic, whatever it does.
It ensures that installed gems are found automatically without
specifying this explicitly in your script. The other solution
is to "require 'rubygems'" first in your script.
Kind regards,
Hans
prev parent reply other threads:[~2010-08-13 19:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 18:17 [gentoo-user] Postgres gem not found by cron job Michael Orlitzky
2010-08-11 19:16 ` Bill Longman
2010-08-11 19:32 ` Michael Orlitzky
2010-08-13 18:36 ` Hans de Graaff [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ltfgj7-n66.ln1@graaff.xs4all.nl \
--to=graaff@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox