I´m trying to update the PATH variable through a program in c but when i try to update it, it comes the problems. I have tried system("source .profile") and execlp("source", "source", ".profile", NULL) but none of them works, I do not know how to make it run so the PATH get update. Has anybody an idea about this? Thanks.