> Well, the nice thing about open source is that you get the source code,
> so you can try to impliment recursion and propose a diff.
As I wrote earlier in this thread, I can't involve in coding
(`c`-programming is not my domain)
> You are trying to run apm in apmd-operated scripts. You figured out
> it doesn't work. You now know why it doesn't work. But you still want
> it to work?
It does work when run in the background,
several successes and none failures detected:
`/etc/apm/resume`:
```
#! /bin/sh
{ [ "$(apm -av)" = 'A/C adapter state: connected' ] && anacron -s ;} &
```
If you insist that it is not supposed to work
then please accept a reverse bug-report:
it works although is shouldn't.
I myself don't know the technicalities of the mechanism
(and your explanations have been enlightening to me),
yet backgrounding working is what I observe.
Dear participants, you both have helped me out. Thank you