executing a shell script from C
bit of an obscure question, but here goes...
is there any way of executing a shell script inside a C program, and then accessing the enviroment of that shell script using getenv()?
e.g., if i had the script
#!/bin/sh
variable=blah
could i execute it within my program and then find the value assigned to variable?
thanks,
alex
|