Hi,
I am developing an application where I need to develop a shell prompt using C. What would be the basic steps to code this?
5 replies to this topic
#1
Posted 17 June 2010 - 10:09 AM
|
|
|
#2
Posted 17 June 2010 - 10:26 AM
1) decide what shell commands you will support.
#3
Posted 17 June 2010 - 10:44 AM
Basic commands for cecking the input and terminating it.
#4
Posted 17 June 2010 - 02:34 PM
#5
Posted 19 June 2010 - 04:29 AM
Using functions like cat, exit() , sleep(), check the status of the commands entered.
#6
Posted 19 June 2010 - 05:57 AM
Elaborate!
What you gonna do?....if you are to use the shell commands which are already there in the OS than use popen() to open pipe for I/O.
Or if you are going to write them yourself again...read the source code of them.(gnu utils are open source,read them)
I also coded some small implementations of the coreutils.You can see them here if you like
http://flashcore.wordpress.com/
Warrior
What you gonna do?....if you are to use the shell commands which are already there in the OS than use popen() to open pipe for I/O.
Or if you are going to write them yourself again...read the source code of them.(gnu utils are open source,read them)
I also coded some small implementations of the coreutils.You can see them here if you like
http://flashcore.wordpress.com/
Warrior
Be a joke unto yourself!
Check out my blog at Flashcore
Check out my blog at Flashcore
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









