diff options
author | Jayaram Pai | 2014-05-19 11:02:57 +0530 |
---|---|---|
committer | Jayaram Pai | 2014-05-19 11:02:57 +0530 |
commit | 8377256e7d90aa7ba1cb51f6164e99f81e2eb53c (patch) | |
tree | 5afcc8e82d7f7d4f6fbff900520bd8f05eb343ca /setProxy.sh | |
download | FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.tar.gz FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.tar.bz2 FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.zip |
initial commit
Diffstat (limited to 'setProxy.sh')
-rw-r--r-- | setProxy.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/setProxy.sh b/setProxy.sh new file mode 100644 index 0000000..55912fb --- /dev/null +++ b/setProxy.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +echo -n 'Proxy Hostname :' +read proxyHostname + +echo -n 'Proxy Port :' +read proxyPort + +echo -n username@$proxyHostname:$proxyPort : +read username + +echo -n 'Password :' +read -s passwd + +unset http_proxy +unset https_proxy +unset HTTP_PROXY +unset HTTPS_PROXY +unset ftp_proxy +unset FTP_PROXY + +export http_proxy=http://$username:$passwd@$proxyHostname:$proxyPort +export https_proxy=http://$username:$passwd@$proxyHostname:$proxyPort +export https_proxy=http://$username:$passwd@$proxyHostname:$proxyPort +export HTTP_PROXY=http://$username:$passwd@$proxyHostname:$proxyPort +export HTTPS_PROXY=http://$username:$passwd@$proxyHostname:$proxyPort +export ftp_proxy=http://$username:$passwd@$proxyHostname:$proxyPort +export FTP_PROXY=http://$username:$passwd@$proxyHostname:$proxyPort +"$@" +echo + |