Re: [Dorset] stdout and stderr redirection weirdness

2021-02-18 Thread Hamish McIntyre-Bhatty
Thanks, this all sounds like it'll be a very good idea. syslog is attractive, but I'm not sure this even has syslog. Or maybe I need to turn it on, I remember hearing something about it anyway. I'll figure it out and get back to you. At the moment I'm adding indexes to the database so it'll have

Re: [Dorset] stdout and stderr redirection weirdness

2021-02-18 Thread Keith Edmunds
OK, this is what I would do. Check whether logger (typically /usr/bin/loggger) is installed on the system. If it is, create a script that runs at boot as follows: #!/bin/ash [if /bin/bash is available, I'd use that] /usr/bin/logger -t xyzzy "SHELL=$SHELL" /usr/bin/logger -t xyzzy "me=$(whoami)"

Re: [Dorset] stdout and stderr redirection weirdness

2021-02-18 Thread Hamish McIntyre-Bhatty
On 18/02/2021 15:34, Keith Edmunds wrote: >> I'm finding that during startup piping and redirecting output doesn't >> work. This is using the ash shell from busybox. > By "during startup" do you mean system startup or your process startup? During system startup (that's the only way to get it

Re: [Dorset] stdout and stderr redirection weirdness

2021-02-18 Thread Keith Edmunds
> I'm finding that during startup piping and redirecting output doesn't > work. This is using the ash shell from busybox. By "during startup" do you mean system startup or your process startup? -- Linux Tips: https://www.tiger-computing.co.uk/category/techtips/ -- Next meeting: Online,

[Dorset] stdout and stderr redirection weirdness

2021-02-18 Thread Hamish McIntyre-Bhatty
Hi all, I have yet another query relating to the NAS box. I suspect this issue is once again due to the weird setup and ancient software. I'm finding that during startup piping and redirecting output doesn't work. This is using the ash shell from busybox. I have the following in my script:

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Terry Coles
On Thursday, 18 February 2021 10:10:47 GMT Hamish McIntyre-Bhatty wrote: > I'm just finishing off my assignment, but should be able to look at > several WMT things this afternoon with luck. Hamish, I've just cracked the freezing problem, so you only need to look at the sockets error that I

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Terry Coles
On Thursday, 18 February 2021 10:10:47 GMT Hamish McIntyre-Bhatty wrote: > I'm just finishing off my assignment, but should be able to look at > several WMT things this afternoon with luck. That would be appreciated. -- Terry Coles -- Next meeting: Online, Jitsi,

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Hamish McIntyre-Bhatty
Yep, I saw it. I'm just finishing off my assignment, but should be able to look at several WMT things this afternoon with luck. Hamish On 18/02/2021 10:08, Terry Coles wrote: > On Thursday, 18 February 2021 09:48:20 GMT Hamish McIntyre-Bhatty wrote: >> Can't recall if you've tried this, but

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Terry Coles
On Thursday, 18 February 2021 09:48:20 GMT Hamish McIntyre-Bhatty wrote: > Can't recall if you've tried this, but what if you replace the call to > mpg123 with a call to echo or similar, just to narrow down whether it > might be mpg123 that's causing the issue. > > If it only crashes with mpg123,

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Terry Coles
On Wednesday, 17 February 2021 13:32:19 GMT Terry Coles wrote: > In any case, the Bells Pi code uses the same approach, so how come that > works and the Music code doesn't? I think I've sussed this. :-) At least I think I know what is going wrong. In order to respond to commands coming in from

Re: [Dorset] On Second Entry to MP3 Player Function Program Stops Responding to External Commands

2021-02-18 Thread Hamish McIntyre-Bhatty
Hi Terry, Can't recall if you've tried this, but what if you replace the call to mpg123 with a call to echo or similar, just to narrow down whether it might be mpg123 that's causing the issue. If it only crashes with mpg123, perhaps there are some verbose or debug flags you can use for mpg123 to