1

我正在尝试ps -A用代码做,但输入execlp("/bin/ps", "ps", "-A", NULL);输出:

/bin/ps: No such file or directory

但是我可以在文件目录中看到 ps 所以我不知道出了什么问题。

4

0 回答 0