1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux Shell C programming

Discussion in 'C' started by flyspekc, Jul 18, 2008.

  1. flyspekc

    flyspekc New Member

    Joined:
    Jul 18, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello!

    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!
     

Share This Page