LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Regarding user defined shell help me please...urgent!! (https://www.linuxquestions.org/questions/linux-newbie-8/regarding-user-defined-shell-help-me-please-urgent-4175476847/)

Sushma05 09-12-2013 06:07 AM

Regarding user defined shell help me please...urgent!!
 
I am supposed to build a user defined shell for linux in c code using only system calls. I have a due date on 13-09-13 (i.e tomorrow). I have no idea how to proceed. So please somebody help me.

Firerat 09-12-2013 06:13 AM

I guess the first step is learn c

I have seen books like "learn c in 21 days" you need a "learn c in less than 12 hours"

when were you given the assignment?

please see the rules on homework
https://www.linuxquestions.org/linux/rules.html
Quote:

  • Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.


Sushma05 09-12-2013 06:42 AM

I know C language and a bit familiar with system calls also. But I am not sure what syatem calls should be used and how to use them to create a user defined shell.

TobiSGD 09-12-2013 06:54 AM

The main system call you will need for a shell is the fork() function. For a basic example have a look here: http://www.iwt-kdg.be/personeel/Van%...rOwnShell.html
A web search with the keywords "write your own shell" will provide you with dozens of articles about that topic.


All times are GMT -5. The time now is 05:53 PM.