Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Linux Shell C programming (http://www.go4expert.com/forums/linux-shell-c-programming-t12227/)

flyspekc 18Jul2008 17:36

Linux Shell C programming

I'm trying to code a simple linux shell in C. However I have some doubts.
Per example, if I want to execute the following command: ls -al|more
The line execl("/bin/ls", "/bin/ls", "-al|more", (char *) 0); returns an error.

How can this be done?

Thank you!

All times are GMT +5.5. The time now is 21:57.