Solved

Lightweight noninteractive shell

Posted on 1997-04-07
4
344 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now