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 が表示されるので、何が問題なのかわかりません。