![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mini-XML 2.5 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-29-2008 08:00 AM |
| mini shell programming (help) | ELECTRO | UNIX for Dummies Questions & Answers | 2 | 10-27-2006 07:32 AM |
| mini distribution | Vilmis | UNIX for Dummies Questions & Answers | 1 | 12-28-2005 06:03 AM |
| Using make utility to create an mini-app | Yifan_Guo | High Level Programming | 1 | 03-19-2005 02:35 AM |
| mini digi-cam | moxxx68 | UNIX Desktop for Dummies Questions & Answers | 0 | 11-16-2004 03:37 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Mini Shell in C
Hi Everyone,
I am a student learning C and Unix. I want to create a shell in C which accepts command line arguments and executes them. I am not sure how to do this. Any help would be greatly appreciated. Thanks
__________________
Passat |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Have you ever hear something about system() ?
|
|
#3
|
||||
|
||||
|
A couple of days back, I came across an URL wherein, someone actually posted the source code for a shell he wrote in c++.
That could be a good starting point for you. But if you use that as your point of beginning, then you would be biased to think in the same way he does. But for pure learning purpose, I shall paste the URL here. http://www.bloggerman.com/articles/2003/November/shell Beware tho', if the moderators think this reply is in violation of the 'homework rule' they will remove it. Best regards, Vino |
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
Quote:
What I meant was if my reply, in which I posted the URL, is a violation of the 'homework rule' i.e. (6) Do not post classroom or homework problems. then the administrators/moderators could possibly delete the post. The o/p needed some help with creating a shell in C. It could be an assignment. And my post gives you the answer directly. And hence, that will raise the `violation interrupt`. Cheers Vino |
|
#6
|
||||
|
||||
|
We do have some rules here and we expect everyone to follow them. One of the rules is:
(6) Do not post classroom or homework problems. If you suspect that a question violates this rule, please don't answer it anyway. This encourages further rule violations. At this point passat, if he waited for years, knows how to download the source code for a shell. I guess what he wanted, but that's not the same thing as creating the source code for a shell. Answering a 4 year old question is a bit odd, but I guess I'll leave the thread open. |
||||
| Google The UNIX and Linux Forums |