?
Solved

Lightweight noninteractive shell

Posted on 1997-04-07
4
Medium Priority
?
358 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 300 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

Independent Software Vendors: 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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month10 days, left to enroll

762 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