I have read the following answer from @nos on how to implement the execlp command but I am unable to run the same specifically for ls -l $pwd
using execlp. I have tried both
execlp("ls","ls", "-l", "$pwd", (char *)NULL);
and
execlp("ls","ls", "-l", "pwd", (char *)NULL);
but nothing seems to work. Any directions in this thought process would be really helpful
Thanks.