UNIX Shell Interaction

sp00fD sp00fD at yahoo.com
Fri Aug 18 14:23:21 EDT 2000


> 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`
> >
> >

uh,
ValidateData.py $FILENAME
rc = $?

just make sure your exit codes are straight in the python script


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list