Saving UNIX environment variables to an executable script

There are times when you want to save environment variables to a script for easy access

Screenshot_from_2013-09-09_21_01_39

But when you actually execute it, you’ll soon find that the environment variables are kept only while the script is running.

Screenshot_from_2013-09-09_21_03_46

Simple solution: add another dot in front of the script command.
That will stop the environment variable from resetting after the script has finished.

Leave a Reply

Your email address will not be published. Required fields are marked *