Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-06-2004, 04:52 AM   #1
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, 05:43 AM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

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

it should not be that hard though...
Old 06-06-2004, 05:53 AM   #3
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 )


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 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 05:31 AM
Making shell scripts interactive using dialog saurabh142857 Programming 2 01-03-2005 12:14 PM
Making shell script a part of linux image mayureshchitale Linux - Newbie 1 07-06-2004 02:00 AM
making .tif files into animated .gif files (bash shell, Red Hat 7.2) illiniguy3043 Linux - Newbie 1 06-01-2004 05:04 PM
making background a shell lippy Linux - General 3 04-02-2003 09:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 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