Tuesday, 6 August 2013

How can I call bash from C with a clean environment?

How can I call bash from C with a clean environment?

I'm attempting to set up my computer such that I can authenticate myself
using an external device connected to a python script. I started by
replacing the login program in inittab with my own program, and I've been
able to get into a bash shell. The problem is that it doesn't get a fresh
environment like the one that is (I presume) given with login. I know
there are ways for me to mess with the environment, but i haven't seen a
way to give it a "default" configuration, if even such a thing makes
sense.

No comments:

Post a Comment