ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/12/31/16:57:41

Date: Thu, 31 Dec 92 08:55:26 EST
From: DJ Delorie <dj AT ctron DOT ctron DOT com>
To: ronis AT onsager DOT chem DOT mcgill DOT ca
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: environment and system calls

>I want to communicate with a subprocess that I spawn using the system 
>command.  I tried to do this by setting some environment variables
>using setenv().  As far as the parent program is concerned, the 
>environment variables are set; however, the child doesn't seem to
>inherit the modified environment.  This probably is because the
>pararent is working on a protected mode copy of the environment table

The child runs off go32's environment, unfortunately.  There currently
is no mechanism for setting up the environment the child gets, unless
you have your application create a batch file that sets them and then
runs the child.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019