opencodeiiita / HackerSkills

A place to showcase your skills :p
5 stars 23 forks source link

Task 7 - Bash scripting #29

Open aswinzz opened 5 years ago

aswinzz commented 5 years ago

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.

opencodebot[bot] commented 5 years ago

Thanks for opening this issue!