Solved

Lightweight noninteractive shell

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 82
Remote desktop Ubuntu from Windows 10 5 63
Impact of disabling SMB v1 on Mac and Linux clients 4 377
linux 13 50
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.:

809 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