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

Igor Pozgaj ipozgaj at nospam.fly.srk.fer.hr
Wed Sep 23 12:53:22 EDT 2009


On Wed, 23 Sep 2009 09:51:29 -0700, volcano wrote:

> The calling script is using this line to get the return code: exit_code
> = !$
> 
> but it fails to get it. What's wrong here? (I am no Linux guru)
>

Exit code is obtained with $?, not with !$

-- 
Igor Pozgaj | ipozgaj at gmail.com (GTalk / MSN)
ICQ: 126002505  | http://fly.srk.fer.hr/~ipozgaj
PGP: 0xEF36A092 | http://ipozgaj.blogspot.com
fb, lfm, li, dA | http://twitter.com/ipozgaj



More information about the Python-list mailing list