From owner-freebsd-questions Fri Jun 1 0:24:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from anime.net (anime.net [63.172.78.150]) by hub.freebsd.org (Postfix) with ESMTP id 28B7D37B423 for ; Fri, 1 Jun 2001 00:24:15 -0700 (PDT) (envelope-from eugene@anime.net) Received: (from eugene@localhost) by anime.net (8.9.3/8.9.3) id AAA04356 for freebsd-questions@FreeBSD.ORG; Fri, 1 Jun 2001 00:24:14 -0700 Date: Fri, 1 Jun 2001 00:24:14 -0700 From: Eugene Lee To: freebsd-questions@FreeBSD.ORG Subject: Re: prevent non-interactive sessions from receiving output from shell? Message-ID: <20010601002414.C2609@anime.net> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from wintermage@home.com on Fri, Jun 01, 2001 at 12:15:05AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 01, 2001 at 12:15:05AM -0700, Sean Knox wrote: : : How do I modify my shell settings (via .bashrc) to -not- produce : output for non-interactive sessions? Don't use ~/.bashrc for starters, as that's what bash reads if it's an interactive shell. Take your goodies and put them somewhere else like ~/.bash_profile. Look at the man pages under "INVOCATION" for details (where you can also read how to test if a shell is interactive or not, and then incorporate that into your ~/.bashrc instead). -- Eugene Lee eugene@anime.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message