Running script from script on Android

I am trying to use init.d script to execute another script in the background. The init.d script should be continued immediately after running another script in the background so that my device can fully boot, and then the executed script can execute its commands. I googled and found that character and can be used at the end of the script name to execute it in the background. This worked, but my init.d script waited for the background of the script to finish. So I googled a few more, and found that the nohup command is being used and will do what I want. Fine. HOWEVER, when I used the terminal emulator on android, I typed nohup and got "nohup: applet not found"

So, as above, I cannot continue the init.d script without waiting for the background of the script. I ask: Does anyone know how to run a script in the background while continuing the current script on android?

Or does anyone know if I can add the "nohup" applet to my Android device?

Thanks again to everyone who answers!

+1
source share
1 answer

You can use daemonize to run the script:

Usage: daemonize [-f logfile] [-a] [-d delay] <program>
+3
source

All Articles