Re: SQR or SQL*PLUS and enviroment variables + UNIX

From: David T. Bath <dtb_at_bf.rmit.edu.au>
Date: 1995/08/16
Message-ID: <40s6f2$o9h_at_aggedor.rmit.EDU.AU>#1/1


p0070621_at_brookes.ac.uk (Tommy Wareing) writes:

>In article <4083dm$ji5_at_bigboote.WPI.EDU>, KJ says...
>>
>> Does anyone know how in a Unix enviorment how I can change an
>>envoirment variable that existed when it was caled. I know that getenv()
>>can be used to read them , but how about changing them?
 

>man getenv
>...
> SEE ALSO
> exec(2), putenv(3C), environ(5)
> ^^^^^^^^^^
>But of course, you can't pass them back up to a parent process.
Unless you are using sh/ksh

        FRED=`process_that_echoes_new_value`
OR

	do some sniffy reading by parent/writing by child along
	a named pipe, or some other IPC mechanism and then get
	the parent to write to ITS environment.  If you are
	coding in C, this is not too difficult.
--
---
David T. Bath       | dtb_at_ftp.bf.rmit.edu.au (mail=dtb_at_bf.rmit.edu.au)
3/175 Wattletree Rd | Snr Tech Consultant, Global Consulting Services
MALVERN 3144 VIC    | 179 Grattan St, Carlton, Vic 3053, Australia
+61 3 9500 9337     | Ph:+61 3 93477511  Fx:+61 3 93470182 Mb: +61 15 824171
WWW pages incl. ORA FAQ: lynx http://www.bf.rmit.edu.au/~orafaq
Received on Wed Aug 16 1995 - 00:00:00 CEST

Original text of this message