LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-18-2005, 06:23 AM   #1
chintan shah
LQ Newbie
 
Registered: May 2005
Location: gujarat india.
Posts: 1

Rep: Reputation: 0
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.
 
Old 05-18-2005, 07:06 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,610

Rep: Reputation: 135Reputation: 135
What isn't working ?
 
Old 05-18-2005, 07:38 AM   #3
mehuljv
Member
 
Registered: Nov 2004
Posts: 72

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
final yeat UG project help archish Programming 1 10-01-2005 03:01 PM
Linux Final Project Ideas Warfare Linux - General 6 07-11-2005 08:06 AM
Final Year Projects fhameed Programming 1 07-19-2004 02:44 AM
Thinking about making my LFS as my final project for master degree? chinaundead Linux From Scratch 4 04-06-2004 06:39 AM
Final Year project ideas??? fishsponge General 10 10-17-2003 09:02 PM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration