Linux under Export can only set temporary variables

Source: Internet
Author: User

Today, when calling ABBYY, it is necessary to pass AppID and apppasswd to the system environment in order to execute the corresponding Python calling code.
After setting, because write the code to turn off the terminal, directly after running the error, access rights do not exist. Thought I applied for the account password has been wrong, to troubleshoot a half-day.

Later, the query, found that the problem appears on the Export command.

Explain:

The export command defines the variable "valid only for the current shell (BASH)"
Define the variable directly under the shell's command line using the [export variable name = variable value], which is valid only under the current shell (bash) or its child shell (bash).
When the shell is closed, the variable is invalidated, and when the new shell is opened there is no such variable, and it needs to be redefined.

Linux under Export can only set temporary variables

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.