LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-06-2004, 03:52 AM   #1
diam0nd
Member
 
Registered: Nov 2003
Posts: 34

Rep: Reputation: 15
Making my own shell in C?


Hi, I was given a task to build a shell, and to write it in C.
Now, where do I start?
I have no idea where to start... any suggestions?
 
Old 06-06-2004, 04:43 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Start looking at another shell code:

http://www.mplayerhq.hu/DOCS/HTML/en/devices.html

it should not be that hard though...
 
Old 06-06-2004, 04:53 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
be sure your familiar with the signal and termios parts of glibc (as a shell should be able to control which process is running and which is in the foreground), and be able to execute processes .. (if you want to make it bash compatible then it'll require a lot more work)

maybe just start with a program that can launch other programs?, then you can build a interface from that, then add other options like process controlling ( telling which programs should be in the foreground, assuming the process is listening )
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making user friendly screen through shell scripting Prasun1 Linux - General 7 07-09-2005 04:31 AM
Making shell scripts interactive using dialog saurabh142857 Programming 2 01-03-2005 11:14 AM
Making shell script a part of linux image mayureshchitale Linux - Newbie 1 07-06-2004 01:00 AM
making .tif files into animated .gif files (bash shell, Red Hat 7.2) illiniguy3043 Linux - Newbie 1 06-01-2004 04:04 PM
making background a shell lippy Linux - General 3 04-02-2003 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 AM.

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
Open Source Consulting | Domain Registration