Thanks mate. That was of great help. When I inspect $?, I can see that it possess the value '0' after executing the system call. That means the system call was successful if I am not wrong. Even after that I can see that the environment variables are not set (as mentioned in my previous comment while replying to Hauke).