Re: Fwd: mutt returns a 256 error code

2015-10-19 Thread Cameron Simpson
On 15Oct2015 09:25, Cameron Simpson wrote: Mathieu replied to me directly, off list, by accident I think. I've asked if he'd like to come back on list. He's traced his issue to running his daemon from a boot script where $HOME isn't what he expected. I'm hoping to discuss that further on list

Re: Fwd: mutt returns a 256 error code

2015-10-14 Thread Cameron Simpson
On 14Oct2015 16:31, Ian Collier wrote: On Tue, Oct 13, 2015 at 01:51:31PM -0500, David Champion wrote: The return from python's os.system is not the same as the exit status. You need os.WEXITSTATUS(os.system(command)), which should be 0, or success. Although this is system-dependent, one popu

Re: Fwd: mutt returns a 256 error code

2015-10-14 Thread Ian Collier
On Tue, Oct 13, 2015 at 01:51:31PM -0500, David Champion wrote: > The return from python's os.system is not the same as the exit status. > You need os.WEXITSTATUS(os.system(command)), which should be 0, or > success. Although this is system-dependent, one popular implementation has: #define __WEX

Re: Fwd: mutt returns a 256 error code

2015-10-13 Thread Cameron Simpson
On 13Oct2015 20:28, mathieu.c...@free.fr wrote: I am currently using mutt 1.5.18 within a python script for reporting some activities about an embedded linux system. I do not get any problem when launching the mutt command within a terminal but I get troubles when launching from my python scri

Re: Fwd: mutt returns a 256 error code

2015-10-13 Thread Moritz Barsnick
On Tue, Oct 13, 2015 at 20:28:08 +0200, mathieu.c...@free.fr wrote: > I am currently using mutt 1.5.18 Why? mutt's release cycles are really slow, and this version is old enough to go to school, is has been seven years since its release. (Okay, I won't argue against 1.4.x here now... "Release ear

Re: Fwd: mutt returns a 256 error code

2015-10-13 Thread David Champion
* On 13 Oct 2015, David Champion wrote: > Hi Mathieu - > > The return from python's os.system is not the same as the exit status. > You need os.WEXITSTATUS(os.system(command)), which should be 0, or > success. I should add that you really should check other values as well -- for example, if mutt

Re: Fwd: mutt returns a 256 error code

2015-10-13 Thread David Champion
* On 13 Oct 2015, mathieu.c...@free.fr wrote: > Hello all, > > I am currently using mutt 1.5.18 within a python script for reporting some > activities about an embedded linux system. > I do not get any problem when launching the mutt command within a terminal > but I get troubles when launchi