Solved

Lightweight noninteractive shell

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

861 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