Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!mrsvr.UUCP!mrsvr!hallett From: hallett@enterprise.positron.gemed.ge.com (Jeff Hallett x5163 ) Newsgroups: comp.unix.programmer Subject: Environments Message-ID: Date: 8 Nov 90 20:29:22 GMT Sender: news@mrsvr.UUCP Reply-To: hallettJ@gemed.ge.com Organization: PET Engineering - GE Med. Systems, Milwaukee, WI, USA Lines: 24 Hi folks. A more serious posting here. I would like one of my C programs to be able to change a csh environment variable so I can do something like (trivial example): % setenv r2 4 % mySetVar r2 5 % echo $r2 5 Of course the real application is a little more complex, but this is the general idea. Can someone give me a pointer to a reference or even a little code that shows me how to do this? Thanks (if I receive email responses, I'll summarize). -- Jeffrey A. Hallett, PET Software Engineering GE Medical Systems, W641, PO Box 414, Milwaukee, WI 53201 (414) 548-5163 : EMAIL - hallettJ@gemed.ge.com "You mean there wasn't! Look! A chicken! A black chicken!"