![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Implementation not working correctly | AirBronto | High Level Programming | 14 | 02-15-2008 06:41 PM |
| Piping and redirection implementation | mobile01 | High Level Programming | 7 | 12-20-2006 07:52 PM |
| need help with my implementation of cat in bash | sanchopansa | Shell Programming and Scripting | 4 | 10-18-2006 03:28 AM |
| isascii & isextendedascii implementation | anjan_kumar_k | High Level Programming | 2 | 07-21-2006 07:48 AM |
| Solaris Timer Implementation | ulisses0205 | High Level Programming | 2 | 04-06-2004 10:03 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I want to implement my own simple multi tasking shell in Unix which will take care of redirection (<, >, >>) and piping.
I am just unable to get a concrete idea of how exactly I have to start. I have several books...some are.. 1. Maurice Bach- Design Of Unix Operating System 2. Richard Stevens- Advanced Programming in Unix However I find the language too high and complicated in these books. Can someone please suggest how exactly I should go abt it...(step by step) What are the things that I need to Learn to Implement this? (anything and everything) |
| Forum Sponsor | ||
|
|
|
||||
|
In general, you want to write a program that take "line" input (i.e. gets() ) and parses it looking for "special" characters (don't forget to process escape "\" characters as well). From that point, you can use fork() exec() to actually run the commands and use popen() to facilitate redirection to/from parent and children processes. I hope this gives you an idea of where to start. Note that in at least one C programming book (I don't remember which), they actually give you a rudimentary shell as a programming example. |
||||
| Google UNIX.COM |