setting enviromental variables for running API's
- write the script below. please get your API username and password from simwood.
echo "export CARRIER_API_USERNAME='username_from_simwood'" >> ~/.bashrc
echo "export CARRIER_API_PASSWORD='password_from_simwood'" >> ~/.bashrc
- run script using command below
- Make changes permanent
simple explanation is; we have created a script set_cred.sh inside the current directory,and we have run it. when you run it, its going to create a file(if non existent) .bashrc inside your home directory. and add the two environmental variables for username and password
verify that the variables are set.
this command should display the
username_from_simwood as assigned in the script above.
This is a work in progress.... will be updated soon.