LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   pls help me for my final year project (https://www.linuxquestions.org/questions/programming-9/pls-help-me-for-my-final-year-project-324619/)

chintan shah 05-18-2005 06:23 AM

pls help me for my final year project
 
hi guys ,

m using the forum for the 1st time nd need some serious help
from you guys.
this query is for those who own a bit of experience in the
linux programming with c/c++.

currently , m doing my final year project in which , i am implementing shell in linux os. but at the peak of my project , certain things is serving as an serious obstacle.
in my project , i am trying to execute the executable binary files of the system , bcoz , i am basically implementing the command interpreter , i have done the parsing of the command line perfectly , and
my programme is correctly taking the path of the binary files i e /bin/ls etc.
but when , m trying to execute the binary files through the
execv system call , its not working at all.

if you guys ,could help me out with this difficulty , i can progress with my project .
if u wish i would send you my complete shell programme
for ur understanding after which you can help me out for solving this error.
its very urgent .
hope to listen from u soon.

keefaz 05-18-2005 07:06 AM

What isn't working ?

mehuljv 05-18-2005 07:38 AM

hi chintan,
r u doing fork before doin execv() or not ?? otherwise it will overwrite ur shell program image with the /bin/ls image.

Bye
Mehul


All times are GMT -5. The time now is 01:48 AM.