Creation of a Command Language Interpreter

This is a discussion on Creation of a Command Language Interpreter within the C Programming forums, part of the General Programming Boards category; The execv does not determine that a function keyword has been entered I didn't understand this statement ! Anyway you ...

  1. #16
    Noob AnishaKaul's Avatar
    Join Date
    Jan 2010
    Location
    Gurgaon, India
    Posts
    115
    The execv does not determine that a function keyword has been entered
    I didn't understand this statement !

    Anyway you are free to drop out the discussion with me now .

  2. #17
    Registered User
    Join Date
    Mar 2010
    Posts
    10
    Thank you for your attempt, but it is clear that we have communication issues.

  3. #18
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by Sicilian_10 View Post
    The execv does not determine that a function keyword has been entered and as a result pass the task to the child to be carried out.

    From my understanding the only thing the current code will do is identify who is connected (so to speak through the execv"/usr/bin/who, the arguments are not identified.
    The execv function is not supposed to do that. That was your job in task 3. Assuming you have done task 3, you then have all the words that you need to pass to execv -- the first arg is the command to run, the second arg are the command line arguments that you have identified.

  4. #19
    Registered User
    Join Date
    Mar 2010
    Posts
    10

    Solved

    I have found the solution, i needed to develop the code that the execvp does but use the execv, so i needed to create a search binary.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why isn't the execlp() function doing anything?
    By jsrig88 in forum C Programming
    Replies: 5
    Last Post: 10-12-2009, 10:09 AM
  2. Replies: 2
    Last Post: 12-16-2008, 01:43 PM
  3. Interpreter Features Question
    By audinue in forum C Programming
    Replies: 0
    Last Post: 10-19-2008, 07:29 AM
  4. program not working...please look at this
    By JOlszewski in forum C Programming
    Replies: 3
    Last Post: 01-30-2006, 09:33 PM
  5. Newton + Einstein were wrong!
    By Jez in forum A Brief History of Cprogramming.com
    Replies: 64
    Last Post: 12-14-2004, 01:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21