Solved

Lightweight noninteractive shell

Posted on 1997-04-07
4
357 Views
Last Modified: 2013-12-15
Hi. I have next problem. I must execute a lot of shell
scripts on low memory computer (4Mb). bash is very big for
this task and have unnecessery possibilities (readline, job
control etc). At this time i find only one simple shell
for scripts evaluating - ash. It have 50Kb text body.
I try find source code for bourne shell (not bourne again shell), but failed.
0
Comment
Question by:kaf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
ggeens earned 100 total points
ID: 1627088
You won't find source code for the original sh, because it's copyrighted.
There might be a version for BSD, but I wouldn't know where to find that. If you can find the source code, it should be relatively easy to compile.
There is a collection of shells on sunsite, in the /pub/Linux/system/shells directory. You can look there for a small one.
From the LSM entry, rc seems to be pretty small.
0
 
LVL 1

Expert Comment

by:ggeens
ID: 1627089
You could try kiss (keep it simple shell). I believe it's in the same directory I mentioned before. It has a lot of builtin functions (this can save you from running some other binaries).
You can compile it without any command line editing, yielding a rather small binary. (I don't recall the exact size.)
0
 

Author Comment

by:kaf
ID: 1627090
kiss is good simple shell for resque disks, but it cannot
execute control construction;
for, while, if, etc...

0
 
LVL 1

Expert Comment

by:ggeens
ID: 1627091
I guess that leaves only ash.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question