Computing.Net > Forums > Unix > Shell script help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Shell script help

Reply to Message Icon

Name: Tony Chan
Date: March 4, 2003 at 14:53:11 Pacific
OS: unix
CPU/Ram: n/a
Comment:

Hi all,

i have a term project is due in two weeks. i need to get some directions from you experts.

here are the details:
in the term individual project, we will be writing a subset of bourne shell functionality and call it "myShell". We will be implementing the following functionality according to specification below:

1) interpreter for user entered commands
2) file naming meta char support
3) i/o redirection
4) implementatino of few shell commands that step 1 will utilize.

interpreter for user entered commands:
broadly, the functionality of the "myShell" will be to execute in infinite loop, once started. The user scenario will be as follows:
a) A % prompt is displayed
b) user enters a command on the prompt and hits return
c) the shell parses the command for any error, and tries to locate the binary using $PATH environment variable
d) the command is either processed successfully or error returned to the standard error stream. the command will be processed in foreground mode only
e) a long running command can be interrupted by hitting Ctrl-C on the terminal.
f) in either case, following step3 a % prompt is displayed
g) the shell can exit ony if user types the command "myExit" on the prompt, or hits Ctrl-D

basically, i need to create an infinite loop shell that does the following:
=find (opt -s)
=wc (opt -l -w)
=ls (opt -l)
=rm (opt -i -r)

thanks for any input




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Shell script help

Shell Scripting Help www.computing.net/answers/unix/shell-scripting-help/5020.html

C Shell script help! www.computing.net/answers/unix/c-shell-script-help/3108.html

c shell script help PLEASE www.computing.net/answers/unix/c-shell-script-help-please/4355.html