从机器人脚本运行脚本 [英] Running a script from a script in android

查看:173
本文介绍了从机器人脚本运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用的init.d脚本在后台执行另一个脚本。该脚本的init.d必须在执行其他脚本在后台,所以我的设备可以完全启动,然后运行的脚本可以做它的命令后,立刻继续。我用Google搜索,发现和放大器;符号可以被用在脚本名结束在后台执行。这个工作,但我的init.d脚本等到后台脚本已经完成。所以我用Google搜索一些,发现nohup命令使用与和放大器;会做我想做的。完善。然而,当我使用的终端仿真程序在Android上,我输入,nohup这个,我也得到的nohup:小程序未找到

i am trying to use an init.d script to execute another script in the background. The init.d script must continue immediatly after executing the other script in the background so my device can boot completely and then the executed script can do its commands. I have googled and found that the & symbol can be used at the end of the script name to execute it in the background. This worked, but my init.d script waited until the background script was finished. So i googled some more, and found that nohup command in use with & will do what i want. Perfect. HOWEVER when i used terminal emulator on android, i typed, nohup and i get "nohup: applet not found"

因此​​,作为上述,我也没办法继续没有它等待后台脚本的init.d脚本。我问,有没有人知道如何在后台运行的脚本,同时继续当前的脚本在Android?

So as above i have no way of continuing the init.d script without it waiting for the background script. I am asking, Does anyone know how to run a script in the background while continuing the current script on android?

或者说,没有任何人知道我是否可以添加的nohup的小程序,Android设备?

Or, does anybody know if i can add the "nohup" applet to my android device?

再次感谢所有谁答复!

推荐答案

您可以使用以进程来运行脚本:

You can use daemonize to run your script:

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

这篇关于从机器人脚本运行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆