Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试ps -A用代码做,但输入execlp("/bin/ps", "ps", "-A", NULL);输出:
ps -A
execlp("/bin/ps", "ps", "-A", NULL);
/bin/ps: No such file or directory
但是我可以在文件目录中看到 ps 所以我不知道出了什么问题。