Date: Mon, 31 Aug 1998 15:03:36 -0400 From: Matthew Hagerty <matthew@wolfepub.com> To: hackers@FreeBSD.ORG Subject: Environment of a process Message-ID: <3.0.3.32.19980831150336.007233bc@wolfepub.com>
next in thread | raw e-mail | index | archive | help
Greetings, Where does a process get its environment if it is not executed from the command line? I have a program that connects to a database and relies on several ENV VARS to be set. I solved the problem with a shell script that wraps the program like this: #!/bin/sh set var;export set var;export set var;export call program exit There has to be a more efficient way to do this?! This particular program is run as a CGI and wrapping it in a shell adds overhead that I'm trying to cut down on. Any insight would be greatly appreciated. Thanks, Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.3.32.19980831150336.007233bc>