Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-12-2013, 06:07 AM   #1
LQ Newbie
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
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.
Old 09-12-2013, 06:13 AM   #2
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,369

Rep: Reputation: 651Reputation: 651Reputation: 651Reputation: 651Reputation: 651Reputation: 651
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
  • 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.
Old 09-12-2013, 06:42 AM   #3
LQ Newbie
Registered: Sep 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
Old 09-12-2013, 06:54 AM   #4
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864
The main system call you will need for a shell is the fork() function. For a basic example have a look here:
A web search with the keywords "write your own shell" will provide you with dozens of articles about that topic.


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
Create a user defined shell in Ubuntuusing c program parmishr Linux - Newbie 17 09-11-2011 05:54 AM
shell script is defined in someother directory, how it is being invoked with path? vaibhavs17 Linux - Newbie 2 05-30-2011 10:24 PM
user defined input in shell script ovaisalam Linux - Newbie 4 12-08-2010 06:44 AM
user defined shell commands ashley_31 Linux - Software 11 05-15-2006 03:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 AM.

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