This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

插拔u盘如何调用应用程序中的可执行文件?



环境:dm8168+dvrrdk4.0.2
现在想通过一个方法,插入u盘后执行系统中的一个可执行文件/bin/update
如何实现?
如果通过call_usermodehelper("/bin/update", NULL, NULL, 1)调用的话,
可执行文件/bin/update如果没有输出打印就可以(比如mkdir touch等等)
但是可执行文件/bin/update如果有输出打印就不行,什么反应都没有?
还有其他方法去实现这个功能吗?谢谢!