Alan,

        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:[EMAIL PROTECTED] 
Sent:   Wednesday, October 12, 2005 10:01 AM
To:     Ertl, John; tutor@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 
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to