Return-Path: Delivered-To: apmail-lucene-mahout-dev-archive@minotaur.apache.org Received: (qmail 59875 invoked from network); 20 Mar 2009 21:50:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 21:50:06 -0000 Received: (qmail 99005 invoked by uid 500); 20 Mar 2009 21:50:06 -0000 Delivered-To: apmail-lucene-mahout-dev-archive@lucene.apache.org Received: (qmail 98961 invoked by uid 500); 20 Mar 2009 21:50:06 -0000 Mailing-List: contact mahout-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-dev@lucene.apache.org Delivered-To: mailing list mahout-dev@lucene.apache.org Received: (qmail 98948 invoked by uid 99); 20 Mar 2009 21:50:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 14:50:05 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.217.164 as permitted sender) Received: from [209.85.217.164] (HELO mail-gx0-f164.google.com) (209.85.217.164) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 21:49:58 +0000 Received: by gxk8 with SMTP id 8so3109036gxk.5 for ; Fri, 20 Mar 2009 14:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=sF5uK5ddDBzoC14dz1GDRa437L0oVQ1hd40YQLANUM4=; b=tIK1jI0T4ds7jTtwsXm49bnha2FoHOjnJ48lLuFPjIDHYR6B5rF09pXa5nAphEcO2a MekC0XPh81nr81aooSEO/N5UfcDW3uANC78aGI4ZV0jfXGzhg9GUpTtxh0R08clGgPmn rBZCSuao76BwN03jjA29Gqd9GVoxz0jIANNAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JG77WvXWGVOgVIWbk3BpHWCp16eBpZoyaFFxrGer4JO1UW68mUeshGybraA/ZKZca2 GOk9OZJG8EUd5yeejphTl2PppF+GwX1qJ1uWk41TMKZYgNpfbUDxo3JfpoZ4+mh3haNN ZvXizm+elqUUkymGBMNo5sc0KQYGUYnQhBFI8= MIME-Version: 1.0 Received: by 10.151.11.19 with SMTP id o19mr5977618ybi.24.1237585455372; Fri, 20 Mar 2009 14:44:15 -0700 (PDT) In-Reply-To: <49C409D1.7040905@windwardsolutions.com> References: <49C2E1A0.6070409@windwardsolutions.com> <31457A7B-7885-4EA9-A3BC-AE50EEA768C9@apache.org> <49C3D6F0.9080007@windwardsolutions.com> <5CBE27D2-F4B0-4437-9435-FD8DF07D25A2@apache.org> <49C3DC3C.3040108@windwardsolutions.com> <49C3E053.2070808@windwardsolutions.com> <49C409D1.7040905@windwardsolutions.com> Date: Fri, 20 Mar 2009 14:44:15 -0700 Message-ID: Subject: Re: 20 Newsgroups Example From: Ted Dunning To: mahout-dev@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd6ae30725b1f046593d1a4 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd6ae30725b1f046593d1a4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Does this part of the manual for bash help? When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following com- mand were executed: if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi but the value of the PATH variable is not used to search for the file name. In particular setting BASH_ENV on the local side and then using -o SendEnv=true might do something useful (or not!). There is also a hadoop-env.sh file in the hadoop configuration that might be useful. You could do something like . ~/bash_profile there. None of these are good answers. I have exactly the same problem with lots of my EC2 invoking scripts. There, I build a script, throw it over to the new instance and the first few lines source key profile files. Not a good solution, but at least it works. For Mahout running hadoop, this is a whole lot less viable. On Fri, Mar 20, 2009 at 2:25 PM, Jeff Eastman wrote: > I'm out of my depth here. I'm just using the default OS-X bash shell and it > uses .bash_profile not .bashrc. I tried creating .bashrc and it did not > solve the problem that Ted's snippet verified: > > ssh localhost env | grep JAVA > > returns nothing. > > Jeff > > Sean Owen wrote: > >> Ah, solution -- add this to .bashrc, not .profile. That's the one bash >> uses for non-interactive shells. Now I remember. >> >> On Fri, Mar 20, 2009 at 7:15 PM, Ted Dunning >> wrote: >> >> >>> ssh with a command does not log in, but instead works like a subshell >>> command. >>> >>> Try [ssh localhost env | grep JAVA]. That may give different results >>> than >>> ssh to localhost with an interactive shell. >>> >>> >> >> >> >> > > -- Ted Dunning, CTO DeepDyve 111 West Evelyn Ave. Ste. 202 Sunnyvale, CA 94086 www.deepdyve.com 408-773-0110 ext. 738 858-414-0013 (m) 408-773-0220 (fax) --000e0cd6ae30725b1f046593d1a4--