Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can we write our own shell??

Reply
Thread Tools Display Modes

Can we write our own shell??

 
 
bobby
Guest
Posts: n/a

 
      11-09-2006, 08:42 AM
Hello group,
Can anyone help me out by sharing some knowledge about how
to create our own shell?? Is it possible to write or create our own
shell?? Or can we modify shell to behave as per our need?

 
Reply With Quote
 
 
 
 
Jacob Bunk Nielsen
Guest
Posts: n/a

 
      11-09-2006, 09:24 AM
"bobby" <(E-Mail Removed)> writes:

> Can anyone help me out by sharing some knowledge about how
> to create our own shell??


You might want to be more specific as to what you want to know, and
what you already know.

A good place to start would probably be to figure out why you want to
write your own shell, and what it does differently from other shells.

I once wrote a shell (in C) for an assignment at university, so it is
actually possible ;-) It gave a good insight into how file descriptors
and such things work.

> Is it possible to write or create our own
> shell?? Or can we modify shell to behave as per our need?


Yes!

But why do you want to write your own shell?

--
Jacob
 
Reply With Quote
 
bobby
Guest
Posts: n/a

 
      11-09-2006, 09:47 AM
Thanx Jacob for the reply......
Actually i need a facility so that i can ENCRYPT the data
whatever is being transferred to any external device, which maintains
the security. Or rather appending some facilties in existing shells.
As per now i know how to use shell commands and what is shell and how
shell functions and why is it necessary. But never i came across to
modify the shell as such. Waiting for reply...


Thanx Jacob .....



Jacob Bunk Nielsen wrote:
> "bobby" <(E-Mail Removed)> writes:
>
> > Can anyone help me out by sharing some knowledge about how
> > to create our own shell??

>
> You might want to be more specific as to what you want to know, and
> what you already know.
>
> A good place to start would probably be to figure out why you want to
> write your own shell, and what it does differently from other shells.
>
> I once wrote a shell (in C) for an assignment at university, so it is
> actually possible ;-) It gave a good insight into how file descriptors
> and such things work.
>
> > Is it possible to write or create our own
> > shell?? Or can we modify shell to behave as per our need?

>
> Yes!
>
> But why do you want to write your own shell?
>
> --
> Jacob


 
Reply With Quote
 
Jacob Bunk Nielsen
Guest
Posts: n/a

 
      11-09-2006, 10:01 AM
"bobby" <(E-Mail Removed)> writes:

> Actually i need a facility so that i can ENCRYPT the data
> whatever is being transferred to any external device, which maintains
> the security.


In that case, I don't think you want to modify a shell. A shell is
basically just a program that is used to start other programs. These
could be anything, email programs, webbrowsers ...

These programs may send unencrypted information without the shell ever
knowing anything about it.

--
Jacob
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-09-2006, 01:20 PM
"bobby" <(E-Mail Removed)> writes:

> Hello group,
> Can anyone help me out by sharing some knowledge about how
> to create our own shell?? Is it possible to write or create our own
> shell?? Or can we modify shell to behave as per our need?


Yes. It's a standard assignment in undergrad operating systems courses.
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-09-2006, 01:21 PM
"bobby" <(E-Mail Removed)> writes:

> Thanx Jacob for the reply......
> Actually i need a facility so that i can ENCRYPT the data
> whatever is being transferred to any external device, which maintains
> the security. Or rather appending some facilties in existing shells.
> As per now i know how to use shell commands and what is shell and how
> shell functions and why is it necessary. But never i came across to
> modify the shell as such. Waiting for reply...


Why is using ssh not the answer?
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
 
Reply With Quote
 
Jack Snodgrass
Guest
Posts: n/a

 
      11-09-2006, 04:12 PM
On Thu, 09 Nov 2006 01:42:50 -0800, bobby wrote:

> Hello group,
> Can anyone help me out by sharing some knowledge about how
> to create our own shell?? Is it possible to write or create our own
> shell?? Or can we modify shell to behave as per our need?



a shell is a program that runs when the user logs in and is
authenticated. the /etc/passwd file has the shell that a
user will run. you can write your own foo shell that
does what you want and put that in the /etc/passwd file
for the user. when the user logs in, foo will be his
shell. it's up to you to do the input / output / commands
that a shell provides.

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell commands mu91t Linux Networking 3 08-07-2008 12:05 PM
shell mu91t Linux Networking 1 08-02-2008 06:30 AM
power shell anoop chandran Windows Networking 1 03-24-2008 04:47 PM
UK Shell Provider templarshells@yahoo.co.uk Broadband 1 05-03-2006 08:33 AM
p2p on shell. Mr_jud Linux Networking 0 12-08-2005 05:04 PM



1 2 3 4 5 6 7 8 9 10 11