The unix programming faq discusses this.
It's not really a C question.
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug
On Mon, Jul 28, 2003 at 07:15:07PM +1000, Andy Eager wrote:
> Hi all,
>
> Got a bit of a C code using execle() to call a shell script with a
> specific environment. I've got no trouble seeing the environment vars
> in bash.
>
> Is there any way of setting an environment variable in the shell s
At Mon, 28 Jul 2003 19:15:07 +1000, Andy Eager wrote:
> Is there any way of setting an environment variable in the shell script
> so that it modifies the environment of the *parent* process?
nope.
> I fear not - but is there any way of returning something from a shell
> other than through an ex
> Got a bit of a C code using execle() to call a shell script with a
> specific environment. I've got no trouble seeing the environment vars
> in bash.
> Is there any way of setting an environment variable in the shell script
> so that it modifies the environment of the *parent* process?
n
Hi all,
Got a bit of a C code using execle() to call a shell script with a
specific environment. I've got no trouble seeing the environment vars
in bash.
Is there any way of setting an environment variable in the shell script
so that it modifies the environment of the *parent* process?
I fear