Python scripts and return codes
Steve Holden
sholden at holdenweb.com
Fri Sep 8 15:34:03 EDT 2000
Gunars Lucans wrote:
>
> Is it possible for a Python script to send a return code back to the shell
> that's running it? Yes, I know I should be doing it all in Python :-), but I'm
> trying to add a Python-based util to an existing shell script (on a Win platform
> with a MKS Korn shell).
>
> --
> Gunars Lucans -- gunars at spss.com -- SPSS Inc, Chicago, USA
Look up the exit() function in the sys module. You can return integer
values to the calling processor from your programs.
regards
Steve
--
Helping people meet their information needs with training and technology.
703 967 0887 sholden at bellatlantic.net http://www.holdenweb.com/
More information about the Python-list
mailing list