UNIX Shell Interaction

Bjorn Pettersen bjorn at roguewave.com
Wed Aug 16 17:19:35 EDT 2000


try printing the return value...

-b

Stuart Ford wrote:
> 
> Howdy guys.
> 
> I'm currently trying to integrate a python script into an existing ksh
> script.
> 
> Could anyone tell me how to return a value to the calling script..
> 
> Example:
> 
> TEST_VAL=`ValidateData.py $FILENAME`
> 
> 
> I have tried to assign a value to the variable via os.environ,
> os.putenv and calling sys.exit,
> with nothing being assigned!!!  Please help..
> 
> If they would let me rewrite the shell script in python, i would
> have... but there are a
> few people nervous about having to learn python.
> 
> 
> Thanks in advance!
> Stuart




More information about the Python-list mailing list