1 year ago
#333016
Mustafa Shama
Using execl() for command line with >> redirection
I want to do the linux command echo "text" >> file.txt with C function execl();
I tried
execlp("echo","echo", "something" ,">>" ,"test.txt" ,NULL);
but it's not working
c
exec
io-redirection
0 Answers
Your Answer