LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-12-2013, 07:07 AM   #1
Sushma05
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, 07:13 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
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.
 
Old 09-12-2013, 07:42 AM   #3
Sushma05
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, 07:54 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
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.
 
  


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


All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration