Make environment variables available when running command as sudo

Posted by Paul on Super User See other posts from Super User or by Paul
Published on 2010-04-20T18:58:42Z Indexed on 2010/04/20 19:03 UTC
Read the original article Hit count: 374

I am using Curl, and am having a problem trying to get it to recognize the $http_proxy environment variable when using sudo curl. I tried putting export http_proxy=.... in my /etc/profile and restarting the shell, to no avail. I would rather not use su -l and run the command while logged in as root.

© Super User or respective owner

Related posts about curl

Related posts about environment-variables