Getting return code for a Python script invoked from a Linux shell script

volcano mark.geyzer at gmail.com
Thu Sep 24 01:04:47 EDT 2009


On Sep 23, 8:01 pm, Donn <donn.in... at gmail.com> wrote:
> On Wednesday 23 September 2009 18:51:29 volcano wrote:> exit_code = !$
>
> I think it's $? to get the code.
> \d
> --
> home:http://otherwise.relics.co.za/
> 2D vector animation :https://savannah.nongnu.org/projects/things/
> Font manager :https://savannah.nongnu.org/projects/fontypython/

Thanks to all who replied,
actually, it was $! ( brain 'copy-paste' failure:) ) and $? did the
job!!!



More information about the Python-list mailing list