Re: [SLUG] C - exec fn call env vars

2003-07-29 Thread mlh
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

[SLUG] C - exec fn call env vars

2003-07-28 Thread Andy Eager
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

Re: [SLUG] C - exec fn call env vars

2003-07-28 Thread Stuart Cooper
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? no

Re: [SLUG] C - exec fn call env vars

2003-07-28 Thread Angus Lees
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 exit

Re: [SLUG] C - exec fn call env vars

2003-07-28 Thread Andrew Bennetts
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 script