Executing a script from inside code in VxWorks 6.7

后端 未结 3 836
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 14:15

In VxWorks 5.5.1 you could run a script using the execute command. In VxWorks 6.7 the execute command is no longer supported. Does anyone now if there is a replacement? I am s

3条回答
  •  终归单人心
    2021-01-24 15:04

    There's a solution in the VxWorks Kernel programmer's guide 6.7, the problem is that it did not work for me, but it could help you:

        shellGenericInit ("INTERPRETER=Cmd", 0, NULL, &shellTaskName, FALSE, FALSE,fdScript, STD_OUT, STD_ERR); do
        taskDelay (sysClkRateGet ());
        while (taskNameToId (shellTaskName) != ERROR); close (fdScript);
    

    Check Section 15.2.15 of the document.

提交回复
热议问题