Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 8 - Bash scripting #39

Open
gauthamzz opened this issue Jan 16, 2018 · 0 comments
Open

Task 8 - Bash scripting #39

gauthamzz opened this issue Jan 16, 2018 · 0 comments

Comments

@gauthamzz
Copy link
Member

gauthamzz commented Jan 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant