Script 'nesting' -- SOLVED

Benny Shomer (bshomer@ebi.ac.uk)
Fri, 7 Apr 1995 13:02:41 GMT

Well,
I got some ideas here and the problem is solved.

So, instead of script a calling script b, it should call the interpreter
with script b as a parameter:

------------- script a -------------
#! /usr/local/bin/python

import posix

posix.environ['SOMETHING']= 'blah blah blah blah '

# Instead of:
# posix.execv('b', [])

# Invoke:
posix.execve('/usr/local/bin/python', ['-f', 'b'], posix.environ)
--------------------------------------

------------- script b -------------
#! /usr/local/bin/python

import sys, string, regsub, posix

a = posix.environ['SOMETHING']
print a
--------------------------------------

Thanks. Sorry for the bother. I hope someone can learn something from
this...

Benny.