From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D22151F462 for ; Fri, 27 Mar 2015 14:32:47 +0000 (UTC) Received: by qgfa8 with SMTP id a8so127723943qgf.0 for ; Fri, 27 Mar 2015 07:32:47 -0700 (PDT) X-Received: by 10.140.95.43 with SMTP id h40mr24245997qge.68.1427466767052; Fri, 27 Mar 2015 07:32:47 -0700 (PDT) Received: from [192.168.11.199] (c-68-82-90-217.hsd1.nj.comcast.net. [68.82.90.217]) by mx.google.com with ESMTPSA id 10sm1558447qht.13.2015.03.27.07.32.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Mar 2015 07:32:46 -0700 (PDT) From: Russell Jennings Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: $USER and $HOME shell variables not set Message-Id: Date: Fri, 27 Mar 2015 10:32:31 -0400 To: unicorn-public@bogomips.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) List-Id: Hello, I am running into some issues with these variables being set - since I = am spawning a script from a unicorn worker (via a rails controller) I = figured I=E2=80=99d ask here.=20 Here is the stackoverflow with the full background: = http://stackoverflow.com/questions/29233181/why-is-envhome-nil-in-my-rake-= task in short: does unicorn have anything to do with $HOME or $USER not being = defined? =46rom what I can tell, that its unicorn is the only thing = thats different versus running the same ruby via a rails console (which = does indeed set those shell variables correctly) in no mans land, so any hep or insight would be greatly appreciated.=20 Thanks, Russell=