This looks absolutely simple, but has puzzled me and I can find a simple
answer.
I have two scripts, a and b. Script a invokes script b with a call to
posix.execv
When running script a, it invokes script b, but then the process is left
with the python interpreter hanging in the command line mode, instead of
interpreting the script in b. >>> ?????..... I thought the script in b
should receive a new shell?...
------------- script a -------------
#! /usr/local/bin/python
import posix
posix.environ['SOMETHING']= 'blah blah blah blah '
posix.execv('b', [])
--------------------------------------
------------- script b -------------
#! /usr/local/bin/python
import sys, string, regsub, posix
a = posix.environ['SOMETHING']
print a
--------------------------------------
Any wizards out there?
Many thanks,
Benny.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Benny Shomer
External Biological Liasion Officer,
EMBL outstation - The EBI,
Hinxton Hall, Hinxton,Cambridge CB10 1RQ, UK
Tel: +44-223-494437
Fax: +44-223-494468
Email: bshomer@EBI.ac.uk
http://www.ebi.ac.uk/ebi_docs/staff/benny.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~