Hey all, I was using webtop to launch these CGI scripts, and somehow the Webtop server was blocking the env variables from getting set(probably some security issue)..So i needed to set the env variables system wide using crle.. This solved the issue.. Thanks for all your pointers.. Good Day..