[plt-scheme] set environment variables in subprocess

From: David Brown (plt at davidb.org)
Date: Wed Jan 13 19:00:08 EST 2010

On Wed, Jan 13, 2010 at 03:07:59PM -0800, YC wrote:

>is there a way to set the environment variables for the subprocess?  Looking
>at http://docs.plt-scheme.org/reference/subprocess.html it was not clear how
>this can be accomplished.

The 'subprocess' call calls execv on Unix/Linux, so you would have to
set it in the current process before the subprocess is created, which
you could do with 'putenv'.

David


Posted on the users mailing list.