How to call execlp with default shell?

Is simple way to call command: system ("anything") and it wait to finish. But I want to work with chdir () of main program. I must call fork () and execlp (..)? How to set working directory?

Please help.


I did not find the right solution from the Internet.

References: https: //

animated explainer video

Reddit   Facebook   Twitter  

Benutzer, die gerade dieses Thema anschauen:
1 Gast/Gäste