Changing default shell for Cron
Bernd Petrovitsch
bernd at petrovitsch.priv.at
Wed Apr 30 01:26:09 UTC 2014
Hi!
On Mon, 2014-04-28 at 17:23 +0000, Rob Anderson wrote:
[...]
> I have compiled Busybox for Android with a
> fully working cron. However, when I try to run crond/crontab, I get the
> following output in the log;
>
> "crond: can't execute '/bin/sh' for user root"
>
> Unfortunately,
> I have tried all the usual suggestions on the internet e.g. adding PATH
> and SHELL to the cron but to no avail (I can get cron working perfectly
Such features are just bloat;-)
> by symlinking /system/bin/sh to /bin/sh but I do not like this method).
That is very probably the best solution as /bin/sh is *the* default
shell for various occasions (and I wonder why that doesn't exist per
default).
> Is it possible to hardcode a different default shell path into the
> Busybox source for cron to execute e.g. the default /system/bin/sh for
> Android? If so, could you please advise whereabouts in the source this
> change needs to be made?
Just grep the source for "/bin/sh" and replace it.
Bernd
--
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.at
More information about the busybox
mailing list