If I set a variable using putenv, will other scripts be affected by this.
My understanding is that it is script specific, is that correct? if two different scripts are running at the same time on the server, will it affect the other script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the env vars are specific to each particular invocation of a program/script. Just like each program can have its own working directory, its own stdin/stdout/stderr, etc… One script’s environment cannot affect another’s, unless they’re in a parent/child relationship.