Re: [Eug-lug] Shell scripts to export environment variables?

2008-02-26 Thread Mike Cherba
instead of invoking the script with #!/bin/bash try using source scriptname to run it within the current shell. the #!/binbash invokation spawns a subshell to run the script and the returns, blowing away any environment variables you might have set. -Mike

Re: [Eug-lug] Shell scripts to export environment variables?

2008-02-26 Thread Ben Barrett
Right; fair discussion of this at http://www.velocityreviews.com/forums/t352671-putenv.html ~ben On Tue, Feb 26, 2008 at 11:25 AM, Mike Cherba [EMAIL PROTECTED] wrote: instead of invoking the script with #!/bin/bash try using source scriptname to run it within the current shell. the

Re: [Eug-lug] Shell scripts to export environment variables?

2008-02-26 Thread Fred James
Rob Hudson wrote: I've got some Python scripts that rely on shell environment variables for certain things. I wrote a simple script that did an export but it didn't take, and I'm guessing that the shell script gets its own environment, that when the script terminates goes away. Is there a way

Re: [Eug-lug] Shell scripts to export environment variables?

2008-02-26 Thread Rob Hudson
On 2/26/08, Fred James [EMAIL PROTECTED] wrote: ... source the file as ... . filename That works for me. I'm mostly looking for a way to set those variables and not have to remember the exact details every time. Thanks, Rob ___ EUGLUG mailing

Re: [Eug-lug] Shell scripts to export environment variables?

2008-02-26 Thread Bob Miller
Rob Hudson wrote: On 2/26/08, Fred James [EMAIL PROTECTED] wrote: ... source the file as ... . filename That works for me. I'm mostly looking for a way to set those variables and not have to remember the exact details every time. Another popular technique is for the subprocess to