[Tutor] launching and monitor from make

Ertl, John john.ertl at fnmoc.navy.mil
Wed Oct 12 19:14:43 CEST 2005


	Thanks,  just as you and Ewald said it works great.  Almost too
easy...I have this feeling something will turn around a bite me once it goes
to ops.

Thanks again

John Ertl 

 -----Original Message-----
From: 	Alan Gauld [mailto:alan.gauld at freenet.co.uk] 
Sent:	Wednesday, October 12, 2005 10:01 AM
To:	Ertl, John; tutor at python.org
Subject:	Re: [Tutor] launching and monitor from make

> The CM team here would like to have the script run each week as part of 
> the
> automated rebuilds.  The suggestion was to make the execution of the 
> scritp
> part of the bigger programs make file.  How would I handel errors when the
> program is run from a makefile?  I hate make so I have not done a lot of
> playing with what make can do in this respect but can python get an error
> message to make?

You can write the errors to stderr instead of stdout.
You can also exit with an error code using sys.exit().
make should detect the non standard error code because it uses standard
shell processing..

Alan G 

More information about the Tutor mailing list