![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
25·
1 year agoFor example if you want to set an explicit exit code. Calling python scripts will usually result in an exit code 0
after the script is run. If you want to set a different exit code for example 1
to indicate some error occured you can do that via sys.exit(1)
.
Same thing applies to other languages of course.
Thank you for the explanation!