UNIX Shell Interaction

Stuart Ford stuart at forddata.com
Wed Aug 16 16:44:30 EDT 2000


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000816/2b67223f/attachment.html>


More information about the Python-list mailing list