Error Output Redirection and Program Termination : System Error : System PYTHON examples


PYTHON examples » System » System Error »

 

Error Output Redirection and Program Termination


Error Output Redirection and Program Termination

import sys


sys.stderr.write('Warning, log file not found starting a new onen')

#The most direct way to terminate a script is to use "sys.exit()"

           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo System
» System Error