Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Ralph Corderoy
Hi Terry, > Would this be a standard subprocess.call() invocation or is there a > better way? The former seems fine AFAICS. > Would I need to create two global instances of /dev/null if I use it > twice in the same function? No, the file descriptor of the open Python File for /dev/null that

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Terry Coles
On Monday, 3 April 2017 16:39:48 BST Ralph Corderoy wrote: > > I suppose that I could set up another apscheduler event to do a reboot > > at midnight. > > If they don't need to normally twiddle switches after it powers on to > have it carry out the typically desired routines, then yes you could.

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Ralph Corderoy
Hi Terry, > I suppose that I could set up another apscheduler event to do a reboot > at midnight. If they don't need to normally twiddle switches after it powers on to have it carry out the typically desired routines, then yes you could. > > I doubt leaks would be sufficient to consume all that

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Terry Coles
On Monday, 3 April 2017 13:44:17 BST Ralph Corderoy wrote: > I was thinking this Pi was being turned off each night, like the other > one. I expect I've forgotten that it's always on. We could tell them to turn it off; they used to have to do that for the old MP3 Player (a portable stereo

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Ralph Corderoy
Hi Terry, I was thinking this Pi was being turned off each night, like the other one. I expect I've forgotten that it's always on. If the switches were set into position rather than spring-return to the centre then one option would be to configure Raspbian to reboot periodically, with your