return a value to shell script

Marco Bizzarri marco.bizzarri at gmail.com
Wed Nov 12 14:10:28 CET 2008


On Wed, Nov 12, 2008 at 2:06 PM, devi thapa <devi.thapa at gmail.com> wrote:
> Hi,
>
> I am executing a python script in a shell script.  The python script
> actually returns a value.
> So, can I get the return value in a shell script? If yes, then help me out.
>
> Regards,
> Devi
> --
> http://mail.python.org/mailman/listinfo/python-list
>

import sys

sys.exit(123)



-- 
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/



More information about the Python-list mailing list