Faerbit / android-crond

Simple Android app which implements crond using AlarmManager
MIT License
26 stars 6 forks source link

Exit with Error Code 127 #12

Closed philiprhoades closed 6 years ago

philiprhoades commented 6 years ago

Faerbit,

Thanks for this app - it is just what I needed because I didn't want to install BusyBox.

My simple script works from the command line but with this crontab:

10 root /data/media/0/bin/db.sh

I get the above error message - how to debug?

Thanks, Phil.

Faerbit commented 6 years ago

What is the root supposed to mean?

philiprhoades commented 6 years ago

On a Linux system that is the user who runs the cron job - the format of the crontab was supposed to be the same as a Linux / UNIX crontab?

Faerbit commented 6 years ago

I have never seen this before. The format is like this. Anything else is not supported. All commands are executed by root per default by this app. So you just need to remove root from your example and it should work fine.

Faerbit commented 6 years ago

I assume my advice solved your problem, if not please reopen the issue.

philiprhoades commented 6 years ago

@Faerbit ,

Yes, I removed the "root" and it worked properly. The format I used is required for /etc/crontab ie for a system-wide crontab - your format is for personal crontabs . . since it was for user "root", I assumed it was the system-wide format that was required . .

Thanks!