[Tutor] Re[2]: [Tutor] ksh and SAS questions

Corran Webster cwebster@math.tamu.edu
Fri, 4 Jun 1999 16:13:51 -0500 (CDT)


On  4 Jun, David Ascher wrote:
> On Fri, 4 Jun 1999 adeline_j_wilcox@ccMail.Census.GOV wrote:
> 
>>     12  os.system('/op/ctl/prod/scripts/setcm.ksh')
> 
> then there's something wrong with that script.  I don't know the Korn
> shell, but it could be that you need to specify something in that shell to
> make the environment variables "stick" after execution.  In bash, I
> believe it's the "export" command.

This won't work - changes to the environment by a command called via
os.system do not change the environment of the python program - and I
suspect that the setcm.ksh program already uses "export".

Corran