I have a script that runs a set of commands and it needs some env variable to be set before running one of the commands. The problem is that system command launches as a separate process, and any env variables that i set there, are not visible for the context that the script runs in. How can I overcome this?
system("set WALLET=NO"); do some perl commands; #this command needs env variable WALLET=NO to b +e set
In reply to Run system command in same context of the script itself by igorle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |