Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!david From: david@ukma.UUCP (David Herron, NPR Lover) Newsgroups: net.lang.c Subject: Re: setenv from c Message-ID: <2237@ukma.UUCP> Date: Tue, 24-Sep-85 17:14:25 EDT Article-I.D.: ukma.2237 Posted: Tue Sep 24 17:14:25 1985 Date-Received: Thu, 26-Sep-85 07:00:15 EDT References: <2936@ncsu.UUCP> <147@mcgill-vision.UUCP> Organization: U of Kentucky, Mathematical Sciences, Lexington KY Lines: 18 Summary: library of routines posted to net.sources > > Is it possible to set a csh environment variable within a C program? I know > > about getenv(), but have failed at attempts to set an environment variable > > from a C program. Basically, what I want to do is "source" a new environment > > variable for the current csh process. Any comments or suggestions would be > > appreciated. Thanks. As many people have said, it ain't possible to set your parents' environment (that is, short of such self-abuse as poking around in /dev/mem). However, it *is* possible to do it for your children. See my posting in net.sources for more information. -- --- David Herron --- ARPA-> ukma!david@ANL-MCS.ARPA --- UUCP-> {ucbvax,unmvax,boulder,oddjob}!anlams!ukma!david --- {ihnp4,decvax,ucbvax}!cbosgd!ukma!david Hackin's in me blood. My mother was known as Miss Hacker before she married!