From owner-freebsd-questions Tue Sep 25 11: 0:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 8F4B437B40E for ; Tue, 25 Sep 2001 10:57:27 -0700 (PDT) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 8E9C2BD48; Tue, 25 Sep 2001 10:57:26 -0700 (PDT) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id KAA26365; Tue, 25 Sep 2001 10:57:26 -0700 Received: (from jojo@localhost) by localhost.localdomain (8.11.3/8.11.3) id f8PHu5J58811; Tue, 25 Sep 2001 10:56:05 -0700 (PDT) (envelope-from swear@blarg.net) To: joe@jwebmedia.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: export and putenv References: <3BB09BF8.2DDD3E91@jwebmedia.com> From: swear@blarg.net (Gary W. Swearingen) Date: 25 Sep 2001 10:56:05 -0700 In-Reply-To: <3BB09BF8.2DDD3E91@jwebmedia.com> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Joseph Koenig writes: > I'm trying to set an environmental variable > (ODBCINI=/usr/local/src/bin/odbc.ini) and I tried export > ODBCINI=/usr/local/src/bin/odbc.ini and it says "command export not > found". So I tried putenv("ODBCINI=/usr/local/src/bin/odbc.ini") and it > says "Badly placed ()'s". What am I doing wrong? Thanks, For starts, you haven't told us which environment you're discussing. Guessing that you're in a csh-type shell at the command prompt, there are no "export" and "putenv" commands. You either should do some reading of your shell's man page (esp. about the "setenv" command) or switch shells to a sh-type shell. You can probably learn your current shell with this command: echo $0 or $SHELL You might also want to read the man page for "chsh". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message