-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Set Proxy for your system using bash script.
Given the script name is proxy.sh
proxy.sh help ==> should show help (or commands it can do)
proxy.sh set 4 ==> should change the proxy to 172.31.1.4
proxy.sh unset ==> should unset proxy
proxy.sh new 172.31.1.4 4 ==> should create a new proxy named 4
Should do at least the following
export http_proxy="http://172.31.1.4:8080"
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
export FTP_PROXY=$http_proxy
When done add proxy.sh as an alias.
submit same way as previous tasks.
mubaris