1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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