Originariamente inviato da Ippo343
come faccio dal mio programma C++ a lanciare ls e quindi leggere i file nella cartella di lavoro?
Puoi anche usare la famiglia di funzioni exec*.
The exec() family of functions replaces the current process image with
a new process image. The functions described in this manual page are
front-ends for execve(2). (See the manual page for execve(2) for fur-
ther details about the replacement of the current process image.)
Usa il Linux Programmer's Manual..