how to use system function to execute the script

bin.wang at qkmtech.com bin.wang at qkmtech.com
Fri Jun 22 04:44:35 UTC 2018


hi everyone:

i want to use the "system()" to execute the script. but do not has output

first i want to use "system()" to execute the shell cmd, but alse have no output

the test code is as followed:

    system("ls -l");
    system("joel /flash/script/spdloop_1");    //  "/flash/script/spdloop_1"----------this is the  script file path in the filesystem 
  
in the serial port ,i can not get the "ls -l" output in my terminal.

why? which thing i missed ,

thank you for help

best ben




bin.wang at qkmtech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180622/b7e4de1a/attachment.html>


More information about the users mailing list